Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer error on "Stop RWG" #35

Closed
GoogleCodeExporter opened this issue Mar 15, 2015 · 6 comments
Closed

Null pointer error on "Stop RWG" #35

GoogleCodeExporter opened this issue Mar 15, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. From within adhoc mode, select "Stop RWG" menu item

What is the expected output? What do you see instead?

RWG should stop and report that it stopped. However, the "unexpected stop"
message appears and "force close".  The result is that RWG is not stopped.
If POSIT is restarted, RWG is reported as running.

Please use labels and text to provide additional information.

Log-cat report:
02-16 22:26:28.039: ERROR/AndroidRuntime(1613): java.lang.NullPointerException
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.app.ApplicationContext.stopService(ApplicationContext.java:802)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.content.ContextWrapper.stopService(ContextWrapper.java:301)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
org.hfoss.posit.PositMain.onMenuItemSelected(PositMain.java:203)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java
:820)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:81
3)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:12
0)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertControll
er.java:884)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.widget.AdapterView.performItemClick(AdapterView.java:283)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.widget.ListView.performItemClick(ListView.java:3132)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.widget.AbsListView$PerformClick.run(AbsListView.java:1620)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.os.Handler.handleCallback(Handler.java:587)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.os.Handler.dispatchMessage(Handler.java:92)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.os.Looper.loop(Looper.java:123)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
java.lang.reflect.Method.invoke(Method.java:521)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
02-16 22:26:28.039: ERROR/AndroidRuntime(1613):     at
dalvik.system.NativeStart.main(Native Method)


Original issue reported on code.google.com by ram8...@gmail.com on 17 Feb 2010 at 3:32

@GoogleCodeExporter
Copy link
Author

Addition tests suggest that the error occurs on the stopService(rwg) on line 
203 of
PositMain.

Original comment by ram8...@gmail.com on 5 Mar 2010 at 11:06

@GoogleCodeExporter
Copy link
Author

Greg confirmed this under the following steps.  
1) Start RWG
2) Exit POSIT (back key) -- generates "forced close message"
3) When POSIT restarted, it reports RWG is running.

Original comment by ram8...@gmail.com on 6 Apr 2010 at 9:24

@GoogleCodeExporter
Copy link
Author

Original comment by ram8...@gmail.com on 6 Apr 2010 at 10:25

@GoogleCodeExporter
Copy link
Author

Chris and I were unable to reproduce this error.   This were the steps I 
followed:
1.  Start RWG
2.  Exit POSIT with the back key (no error)
3.  When POSIT restarted, RWG is displayed as not running.

This seems to be working as intended but will probably need more testing.  Also,
stopping RWG from within POSIT by pressing "Stop RWG" works too.

Original comment by captainfoecking@gmail.com on 11 Apr 2010 at 6:20

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Fixed and Verified.

Original comment by prasanna...@gmail.com on 20 Apr 2010 at 9:25

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant