Top "Nullpointerexception" questions

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

Spring DI - Autowired property is null in a REST service

I'm getting started with Spring DI, but I'm struggling with dependency injection and the worse part is that I'm not …

spring dependency-injection nullpointerexception jersey autowired
findFragmentById return null

When i call findFragmentById() with the id of my fragment, it return null. Let me show you the code. The …

android android-fragments nullpointerexception
Find out what variable is throwing a NullPointerException programmatically

I know I can find out if a variable is null in Java using these techniques: if (var==null) -&…

java debugging nullpointerexception
Eclipse debugging has dialog box: Exception processing async thread queue java.lang.NullPointerException

I am facing a problem while debugging in Eclipse 3.4.2. I keep getting pop-up Exception processing async thread queue java.lang.…

eclipse nullpointerexception
Android - NullPointerException on SearchView in Action Bar

I've got a problem trying to add a SearchView widget to the ActionBar in my activity - I get a …

android nullpointerexception android-actionbar searchview
NullPointerException accessing views in onCreate()

This is a canonical question for a problem frequently posted on StackOverflow. I'm following a tutorial. I've created a new …

java android android-fragments nullpointerexception
AutosizeColumns on SXSSFWorkbook

Is it possible to autoSizeColumns on a streaming SXSSFWorkbook? I implemented an export functionality to export a list of objects …

java nullpointerexception apache-poi
Check chains of "get" calls for null

Let's say I'd like to perform the following command: house.getFloor(0).getWall(WEST).getDoor().getDoorknob(); To avoid a NullPointerException, I'd …

java null nullpointerexception
Long.getLong() failing, returning null to valid string

I've spent the past two hours debugging what seems extremely unlikely. I've stripped the method of a secondary Android Activity …

android string nullpointerexception long-integer string-parsing
Is there a C++ equivalent of a NullPointerException

Both Java and C#, and probably many other languages too, have a predefined exception class that is thrown when a …

c++ nullpointerexception