1 Reply Latest reply on Sep 5, 2011 11:56 AM by sreemanth

    hi guys how do i fix java.lang.NullPointerException

    onesleo

      hi guys how do i could fix this error

       

      java.lang.NullPointerException

       

       

      thanks in advance

        • 1. Re: hi guys how do i fix java.lang.NullPointerException
          sreemanth

          Hi Leonado,

           

                         You have not mentioned context info or atleast stacktrace.Please provide perfect answer. Any how please find the causes of null pointer exception.

           

          •       You are trying to acess the reference  without assigning an object(created object).

           

          eg: String s = null;

                   s.length();// null pointer exception.

           

          I think u might know this concepts. For your scenario provide detail steps.