06-15 16:01:34.803 3948 3948 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CompoundButton.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at com.example.marco.bluenet_01.navigationActivity.onCreateOptionsMenu(navigationActivity.java:155)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.app.Activity.onCreatePanelMenu(Activity.java:3146)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:328)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:93)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:332)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:93)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:455)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:57)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6123)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-15 16:01:34.803 3948 3948 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
I had logged into the app on both devices.
Here is the exception: