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

Fixes issue #852 #853

Merged
merged 1 commit into from
Jul 3, 2014
Merged

Conversation

m4gr3d
Copy link
Member

@m4gr3d m4gr3d commented Jul 3, 2014

  • fixes issue Null Pointer Exception #852 by making sure the map is initialized before any interaction with it.
  • adds omitted art resource file.

@@ -82,6 +83,10 @@ public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup,
@Override
public void onStart(){
super.onStart();

//Make sure the map is initialized
MapsInitializer.initialize(getActivity().getApplicationContext());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it change anything for normal operation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if the map is already initialized, then the call is a no-op operation.

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

In
Android/src/org/droidplanner/android/maps/providers/google_map/GoogleMapFragment.java:

@@ -82,6 +83,10 @@ public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup,
@OverRide
public void onStart(){
super.onStart();
+

  •    //Make sure the map is initialized
    
  •    MapsInitializer.initialize(getActivity().getApplicationContext());
    

Does it change anything for normal operation?


Reply to this email directly or view it on GitHub
https://github.com/DroidPlanner/droidplanner/pull/853/files#r14497285.

arthurbenemann added a commit that referenced this pull request Jul 3, 2014
@arthurbenemann arthurbenemann merged commit df54a13 into DroidPlanner:master Jul 3, 2014
@m4gr3d m4gr3d deleted the fix_issue_852 branch July 3, 2014 21:30
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

Successfully merging this pull request may close these issues.

2 participants