| Author |
getting null pointer
|
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 639
|
|
this is my main class
this is online class
when i click the links it gives this error
but whe i print position it gives values.
so how it gives null pointer?
|
 |
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
|
posted

0
|
|
Which object is null?
|
Android apps – ImageJ plugins – Java web charts
|
 |
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 639
|
|
|
I also need to know ?
|
 |
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
|
posted

0
|
We are not in a position to figure that out - you are. For example, you can print relevant values to the Log.
Also, in which line does the exception occur, meaning, which one is line 52 - the one labelled 52 in your post?
|
 |
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 639
|
|
It gives null pointer in this line
Toast.makeText(getApplicationContext(), "AAAAAAAAAAAAAAAAAAAAA "+position, Toast.LENGTH_LONG).show();
but the position value is not null.
|
 |
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
|
posted

0
|
What does getApplicationContext() return?
What does Toast.makeText(...) return?
|
 |
 |
|
|
subject: getting null pointer
|
|
|