The Java exception thrown when an application attempts to use null in a case where an object is required.

learn more… | top users | synonyms

0
votes
2answers
39 views

Null Pointer Exception when reading a file

I have two activities: In the first activity I am passing the String "pathName" to a second activity. I am receiving the extra okay and I can create a File from this path name. The problem arises when ...
0
votes
0answers
28 views

NullPointerException: GLES20RecordingCanvas.drawPatch

After thorough testing I released my app to the Google play market... It works fine on all devices that I have had my friends try it on except for the Samsung Galaxy S2. In one activity, when a ...
1
vote
2answers
25 views

NullPointerException when trying to write object instance to ObjectOutputStream

I'm getting Exception in thread "main" java.lang.NullPointerException at java.io.FileOutputStream.<init>(FileOutputStream.java:201) at ...
0
votes
1answer
12 views

Writing parameterized tests for JUnit, why are two of my parameters “null” when I run my tests?

I'm doing an internship for a webapp security company, and one of my tasks is to write unit tests for files. The file I'm working on right now simply returns a password-based encryption cipher. The ...
-1
votes
3answers
50 views

NullPointerException in nested array

java.lang.NullPointerException It is in my nested array. Basically I want to retrieve in arrayIWantThisCat [10 {1,2,3,4} , 20 {5,6,7,8}] String[][] arrayIWantThisCat; String[] ...
-3
votes
2answers
78 views

FATAL EXCEPTION: java.lang.NullPointerException [duplicate]

I'm getting a NullPointerException on the following line of my source code: String value = Values.get("name").toString(); Which is causing a force close error. I've been scratching my head with ...
1
vote
1answer
9 views

java.lang.NullPointerException at org.apache.myfaces.taglib.core.ViewTag.doStartTag

I am using MyFaces 1.2 with WAS 7.0 and Myeclipse Blue 10.7. I am getting the following error. I have researched Internet pretty thoroughly but to no avail. Logs don't present much. MyEclipse does not ...
0
votes
3answers
25 views

SetAdapter on a SherlockFragmentActivity? (Nullpointerexception)

I have a custom Listview that I want to try and implement in my SherlockFragment(Tab1). In a normal extend activity it works great, but whenever I try and declare it in my ...
-1
votes
4answers
69 views

Nullpointerexception error when using JavaCompiler

Following is the Java code written in eclipse ide... package compile; import java.io.IOException; import java.util.Arrays; import javax.tools.DiagnosticCollector; import javax.tools.JavaCompiler; ...
0
votes
0answers
11 views

Appcelerator Titanium Android DatePicker setLocale('de') fails with NullPointerException

This works ok without the setLocale('de'). It works with iOS. It fails only in the Android version. Here's the Alloy view definition: datePicker.xml <Alloy> <Window ...
0
votes
0answers
62 views

Getting exception from a project that was working fine yesterday java.lang.NullPointerException [on hold]

I was working on a jsp project yesterday on Netbeans 7.3.1 and everything was fine then today i try and open same project i get the exception WARNING: StandardWrapperValve[jsp]: ...
-2
votes
3answers
62 views

Java ternary operator and NullPointerException [duplicate]

hi,I encountered a problem in works,the question like this: Integer test1=null; Integer test2=null; i call them like this: test2=(test1==null?test1:(test1+1)); test2=(test1==null?test1:-1); then ...
0
votes
2answers
26 views

Simple Runnable experiment Works on AVD but not on hardware device

I'm a beginner at both Android Development and StackOverflow so please don't shoot me if I step on any toes ! I am trying to get a simple app working where a user pushes a button and a displayed ...
0
votes
1answer
10 views

Nullpointerexception when using listview and Arrayadapter

Hi i am trying to populate the calendar events into a dailog with listview, while setting the adapter to listview i am getting nullpointerexception . below is my code final Dialog dialog = new ...
1
vote
0answers
21 views

NullPointerException using Proguard and SlidingMenu

I have a NPE that's only occurring when I obfuscate my code with Proguard, hoping somebody can help. I have a quite complicated project that uses ActionBarSherlock, SlidingMenu, Facebook, Google Play ...

1 2 3 4 5 258
15 30 50 per page