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 Exception #852

Closed
arthurbenemann opened this issue Jul 3, 2014 · 4 comments
Closed

Null Pointer Exception #852

arthurbenemann opened this issue Jul 3, 2014 · 4 comments

Comments

@arthurbenemann
Copy link
Member

java.lang.RuntimeException: Unable to resume activity {org.droidplanner/org.droidplanner.android.activities.FlightActivity}: java.lang.NullPointerException: CameraUpdateFactory is not initialized
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2949)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2978)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2371)
at android.app.ActivityThread.access$900(ActivityThread.java:164)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1268)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5368)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException: CameraUpdateFactory is not initialized
at com.google.android.gms.internal.fq.b(Unknown Source)
at com.google.android.gms.maps.CameraUpdateFactory.ie(Unknown Source)
at com.google.android.gms.maps.CameraUpdateFactory.newCameraPosition(Unknown Source)
at org.droidplanner.android.maps.providers.google_map.GoogleMapFragment.loadCameraPosition(GoogleMapFragment.java:294)
at org.droidplanner.android.fragments.DroneMap.onResume(DroneMap.java:90)
at android.support.v4.app.Fragment.performResume(Fragment.java:1543)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:963)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1086)
at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1894)
at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:466)
at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:455)
at android.app.Activity.performResume(Activity.java:5520)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2939)
... 12 more
@m4gr3d
Copy link
Member

m4gr3d commented Jul 3, 2014

@arthurbenemann are you able to reproduce the issue? I have a fix in mind, but I can't test it since I'm not able to reproduce the bug.

m4gr3d added a commit to m4gr3d/droidplanner that referenced this issue Jul 3, 2014
@m4gr3d m4gr3d mentioned this issue Jul 3, 2014
@arthurbenemann
Copy link
Member Author

@ne0fhyk I haven't been able to reproduce the error. But it's the biggest cause of crashes of the app accordingly to Google Analytics.

@m4gr3d
Copy link
Member

m4gr3d commented Jul 3, 2014

I ran into a similar bug before, and the fix I pushed should in theory
solve the issue.

On Thu, Jul 3, 2014 at 1:17 AM, Arthur Benemann [email protected]
wrote:

@ne0fhyk https://github.com/ne0fhyk I haven't been able to reproduce
the error. But it's the biggest cause of crashes of the app accordingly to
Google Analytics.


Reply to this email directly or view it on GitHub
#852 (comment)
.

arthurbenemann added a commit that referenced this issue Jul 3, 2014
@arthurbenemann
Copy link
Member Author

Closed by #853

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

No branches or pull requests

2 participants