Results 1 to 2 of 2
  1. #1
    Harish P is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default null pointer exception in lwuit

    i am using netbeans ide 6.9 to develop mobile application but i am not able to acess resource file like theme.res from res folder of my project. i.e while running its giving the error as below
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sun.lwuit.plaf.UIManager.buildTheme(+1)
    at com.sun.lwuit.plaf.UIManager.setThemePropsImpl(UIM anager.java:377)
    at com.sun.lwuit.plaf.UIManager.setThemeProps(UIManag er.java:353)
    at MenuItem1.startApp(MenuItem1.java:37)
    at javax.microedition.midlet.MIDletProxy.startApp(+7)
    at com.sun.midp.midlet.Scheduler.schedule(+270)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+80)
    can any one help me wat is the problem.

  2. #2
    go4soumya is offline Member
    Join Date
    Oct 2010
    Posts
    32
    Rep Power
    0

    Red face paste the code!!

    how are u accessing theme.res from your res folder??...
    paste the code...probably you are trying "/theme.res"..!!

Similar Threads

  1. Null pointer Exception
    By peiceonly in forum New To Java
    Replies: 8
    Last Post: 09-05-2010, 07:48 PM
  2. Null pointer exception?
    By coffee in forum New To Java
    Replies: 4
    Last Post: 08-03-2009, 04:22 AM
  3. Help with null pointer exception
    By gammaman in forum New To Java
    Replies: 4
    Last Post: 07-14-2009, 01:23 AM
  4. null pointer exception
    By anthonym2121 in forum New To Java
    Replies: 7
    Last Post: 04-06-2009, 04:25 AM
  5. Null pointer exception
    By Stephenmak in forum New To Java
    Replies: 5
    Last Post: 04-01-2009, 03:17 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
  •