Results 1 to 5 of 5
  1. #1
    nitinverma is offline Member
    Join Date
    Mar 2010
    Location
    New Delhi,Vadodara
    Posts
    50
    Rep Power
    0

    Default java.lang.NullPointerException

    I created a application in which i am using a text file for store data.
    It is running in the Net Beans Emulator sucessfully.
    But when I install the Application in the Nokia Phone.
    Then Application install Successfully But On the start time it gives the error Like this.

    "Null Pointer
    java.lang.NullPointerException".

    What Should i do.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,411
    Rep Power
    25

    Default

    it gives the error
    Post the full text of the error message.

    Look at the program at the line number in the error message and see why the object referred to there is null.

  3. #3
    nitinverma is offline Member
    Join Date
    Mar 2010
    Location
    New Delhi,Vadodara
    Posts
    50
    Rep Power
    0

    Default

    But Norm,
    This is not gives the error on the System it runs successfully and gives no error.

    It gives error on the Mobile Phone.
    Only this "NullPointerException".

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,411
    Rep Power
    25

    Default

    Sorry, I'm not familiar with the JVM on a mobile phone.

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,411
    Rep Power
    25

    Default

    Is it your code that is giving the error message?
    Do you have any code in a catch block that only prints the message and does NOT call printStackTrace().
    Be sure to use printStackTrace() in catch blocks while debugging a program.

Similar Threads

  1. java.lang.nullPointerException
    By KSUliz in forum New To Java
    Replies: 10
    Last Post: 04-11-2010, 07:15 PM
  2. java.lang.NullPointerException
    By Travis in forum AWT / Swing
    Replies: 7
    Last Post: 09-18-2009, 05:49 PM
  3. java.lang.NullPointerException
    By vasavi.singh in forum New To Java
    Replies: 1
    Last Post: 02-27-2009, 12:36 PM
  4. java.lang.NullPointerException
    By vasavi.singh in forum New To Java
    Replies: 2
    Last Post: 02-27-2009, 10:11 AM
  5. java.lang.NullPointerException
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-13-2008, 07:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •