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

處理旋轉 #5

Open
YuanLiou opened this issue Mar 1, 2017 · 0 comments
Open

處理旋轉 #5

YuanLiou opened this issue Mar 1, 2017 · 0 comments

Comments

@YuanLiou
Copy link
Owner

YuanLiou commented Mar 1, 2017

現在只要一旋轉就會當掉

googleMap 是 null

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.setMyLocationEnabled(boolean)' on a null object reference
                                                                                        at tw.com.louis383.coffeefinder.maps.MapsFragment.setupDetailedMapInterface(MapsFragment.java:161)
                                                                                        at tw.com.louis383.coffeefinder.maps.MapsFragment.moveCamera(MapsFragment.java:128)
                                                                                        at tw.com.louis383.coffeefinder.mainpage.MainActivity.moveCameraToCurrentPosition(MainActivity.java:250)
                                                                                        at tw.com.louis383.coffeefinder.mainpage.MainPresenter.requestUserLocation(MainPresenter.java:66)
                                                                                        at tw.com.louis383.coffeefinder.mainpage.MainActivity.onConnected(MainActivity.java:292)
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