wireguard-android/app/src/main/java/com/wireguard/android
Jason A. Donenfeld a42892bc28 TunnelEditorFragment: do not pass null localConfig
Otherwise we might dereference it, per this play store gathered trace:

Xiaomi Redmi 3S (land), 2048MB RAM, Android 7.1
java.lang.NullPointerException:
at com.wireguard.android.model.Tunnel.setConfig (Tunnel.java:118)
at com.wireguard.android.fragment.TunnelEditorFragment.onOptionsItemSelected (TunnelEditorFragment.java:160)
at android.app.Fragment.performOptionsItemSelected (Fragment.java:2478)
at android.app.FragmentManagerImpl.dispatchOptionsItemSelected (FragmentManager.java:2182)
at android.app.FragmentController.dispatchOptionsItemSelected (FragmentController.java:336)
at android.app.Activity.onMenuItemSelected (Activity.java:3211)
at com.android.internal.policy.PhoneWindow.onMenuItemSelected (PhoneWindow.java:1219)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:761)
at com.android.internal.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:152)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:904)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:894)
at android.widget.ActionMenuView.invokeItem (ActionMenuView.java:616)
at com.android.internal.view.menu.ActionMenuItemView.onClick (ActionMenuItemView.java:152)
at android.view.View.performClick (View.java:5637)
at android.view.View$PerformClick.run (View.java:22433)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:153)
at android.app.ActivityThread.main (ActivityThread.java:6244)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:781)

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-10 00:54:59 +01:00
..
activity global: Fix or suppress most lints/warnings 2018-01-08 23:39:26 -06:00
backend WgQuickBackend: Finish the implementation 2018-01-09 10:31:08 -06:00
configStore global: Clean up error logging 2018-01-09 09:37:49 -06:00
databinding project: Global cleanup 2018-01-08 02:19:13 -06:00
fragment TunnelEditorFragment: do not pass null localConfig 2018-01-10 00:54:59 +01:00
model model: Chain completions to avoid race conditions 2018-01-09 10:03:29 -06:00
preference ToolsInstaller: Propagate NoRootException properly 2018-01-09 08:13:32 -06:00
util global: Clean up error logging 2018-01-09 09:37:49 -06:00
widget global: Fix or suppress most lints/warnings 2018-01-08 23:39:26 -06:00
Application.java WgQuickBackend: Ensure tools are available before use 2018-01-08 23:39:32 -06:00
BootShutdownReceiver.java global: Clean up error logging 2018-01-09 09:37:49 -06:00
QuickTileService.java QuickTileService: sometimes tile is null 2018-01-10 00:41:28 +01:00