1. Download our Official Android App: Forums for Android!

Apps Some Help Debugging NullPointerException Pls

Discussion in 'Android Development' started by ac4android, Mar 13, 2016.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    It was a spelling mistake :rolleyes:
     

    Attached Files:


    Advertisement

    #1 ac4android, Mar 13, 2016
    Last edited: Mar 13, 2016
  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,887
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,887
    11,548
    1,988
    Male
    Software developer
    South West of England
    The code in the debugger screenshot is different to the code you show in the ShowMapActivity code snippet.
    Should they be the same??
     
  3. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    Apologies, the screen shots are from a previous test, the current codes still return a nullpointer exception for both ways of doing it i.e. latlng variables and bundle all have null values.

    UPDATE:
    Spelling mistake :rolleyes:

    Should be getParcelableExtra("bundle", args) with a small "b"
     
    #3 ac4android, Mar 13, 2016
    Last edited: Mar 13, 2016

Share This Page

Loading...