You tried to access an object you haven't constructed yet, meaning you're using only a reference. The reference has to be constructed or point to an object somewhere, should look like this:
Foo f = new Foo(); f.func(); if you just have: Foo f; f.func(); You're trying to access memory that isn't there. The line: new Foo(); Allocates memory and points the reference 'f' to it. f can then be used to access that memory. Its called a nullpointerexception because currently your reference is pointing to a null memory address (invalid). On Feb 1, 9:16 pm, subhashini alaguchokku <[email protected]> wrote: > Hi, > > I get following compile time error, pls give any solutions > > [2011-02-02 10:37:46 - Mcatalog] Unknown error: > java.lang.NullPointerException > > Thanks and regards, > subha -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

