Top "Nullpointerexception" questions

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

Glassfish server does not start. NullPointeException

I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line. asadmin start-domain …

java intellij-idea nullpointerexception glassfish payara
Which @NonNull Java annotation to use

What is the best 'NonNull' annotation? "Best" in the sense of Standard way e.g. future proofness (e.g. support …

java eclipse intellij-idea nullpointerexception annotations
How to fix the Findbugs issue "Null value is guaranteed to be dereferenced" NP_GUARANTEED_DEREF

Hi I have got some code that is reported as having the NP_GUARANTEED_DEREF issue by Findbugs. Now looking …

java nullpointerexception findbugs dereference correctness
NullPointer Exception when calling method from a difference class

JAVA- Hi, I am writing a minesweeper program (first biggie) and am really stuck. The program itself is comprised of 2 …

java nullpointerexception method-call
NullPointerException while trying to access @Inject bean in constructor

I've a session scoped bean: @Named @SessionScoped public class SessionBean implements Serializable { private String someProperty; public String getSomeProperty() { return someProperty; } } …

jsf constructor nullpointerexception cdi managed-bean
Android Api 23 Change Navigation View headerLayout textview

I am testing the Navigation Drawer sample project in android and i have a problem setting the text in navigation …

android nullpointerexception header textview navigation-drawer
Android, How to use readTypedList method correctly in a Parcelable class?

I have two Activities, in the first one, I instanciate an ArrayList of Object myObject. In the second activity, i …

java android arraylist nullpointerexception parcelable
Android TabHost.addTab -> Null pointer exception

Here is my code: public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { TabHost tabHost = new TabHost(this); …

android nullpointerexception android-tabhost