The Java exception thrown when an application attempts to use null in a case where an object is required. These include: Calling the instance method of a null object. Accessing or modifying the field of a null object. Taking the length of null as if it were an array. Accessing or modifying the ...

learn more… | top users | synonyms

2
votes
0answers
18 views

Mongo-Hadoop simple test failing with NPE

This is an open issue posted in the support forum here but since I didn't get any response, I thought I should try asking here. I have an existing application that uses MongoDB as the data layer. ...
0
votes
1answer
29 views

Android App crashes on startup while reading objects from java.lang.NullPointerException

I am working on my first Android app. It was working fine until I decided to add a functionality to save and load objects and settings on OnCreate and onRestart. After that the app crashes on startup. ...
-1
votes
2answers
32 views

How to handle thread.join in stop(), if init() was never successful

Ive got a question. I write a Java Program which I start as a daemon. So I have a class where I implement Daemon and Runnable. In init() I do some checks and then, when the checks are okay, I start a ...
0
votes
2answers
35 views

Null pointer exception when reading images from database second time

I read the images from my sdcard and store the paths in an array inside an activity, and it works fine and this reading is inside a method. The second time, i call the same method from another ...
2
votes
1answer
30 views

NullPointException when I try to navigate forms on j2me using buttons

I'm having trouble linking the main page to the second page by the click of a button. It throws a NullPointException. Can someone please tell me where I've erred? import java.io.InputStream; import ...
0
votes
1answer
25 views

NullPointerException while setting Image in imageView from Bitmap?

I am Using APK Expansion File from http://developer.android.com/guide/market/expansion-files.html CODE : String[] path= getAPKExpansionFiles(this,2,0); ZipResourceFile expansionFile; try { ...
0
votes
2answers
35 views

how to connect my android HTC device for debugging?

can I connect my Android emulator to a device (HTC Wildfire Android 2.2.1)? Actually, my app is working fine in the emulator, but when I tried to install my application in the device, it is crashing. ...
0
votes
3answers
66 views

The program is showing null pointer exception…converting double to int

My program causes a null pointer exception... I think the problem is in converting lat3 and lon3 from double to int... Is there some other way of parsing the location in double to int to give it to ...
0
votes
0answers
8 views

Spring Batch Job throwing NullPointerException

I'm getting a java.lang.NullPointerException when trying to run a sql query from my spring batch job. This is how I've declared the xml: <batch:job id="pJob" incrementer="idIncrementer"> ...
0
votes
1answer
32 views

Android application with AsyncTask: NullPointerException?

I have to say that it was working perfectly fine before I decided to make some changes. However, the changes that I made was causing a lot of errors so I tried to undo all the changes one by one. I ...
0
votes
2answers
35 views

Android Handler NullPointerException

The Activity creates a new Thread. The run() method gets an object (vector) via input stream Now I want to display the contents of this Vector on a ListView called direc. Thats all...but its not ...
0
votes
0answers
43 views

It is showing null pointer exception and i dont know what is wrong here

..I dont know where it is going wrong.... also i need to parse from string to int which is not working may be the intent is wrong...i dont get it......and also do i need to create a different class ...
0
votes
1answer
48 views

Android whrere am i wrong ? uncaught exception (group=0x4001d800)

This work is based on Patel Deval example. The application intends to load ImageSwicher Content based on selected radio button. During runtime uncaught exception (group=0x4001d800) is printed. Where ...
0
votes
0answers
30 views

Android asyncTask array returning null

Im trying to rewrite some code because android specifies that you must place network tasks on a separate thread in version 4.0, I had a block of code that was working perfectly but since I tried ...
0
votes
2answers
33 views

nullpointer exception in setting up a tabhost at calling addTab( TabHost.TabSpec spec) method

this question is really wierd and driving me crazy. i can't get rid of the nullPointerException. my task is quite simple, just run a test on the tabhost. but now i'm not able to even create one ...

1 2 3 4 5 103
15 30 50 per page