07-18 20:27:29.267 9017-9017/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.elixsr.portforwarder, PID: 9017
java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=0, data=null} to activity {com.elixsr.portforwarder/com.elixsr.portforwarder.ui.preferences.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:3720)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3763)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1403)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference
at com.elixsr.portforwarder.ui.preferences.SettingsFragment.onActivityResult(SettingsFragment.java:340)
at android.app.Activity.dispatchActivityResult(Activity.java:6466)```
When using hardware back button