Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java.lang.nullpointerexception (no error message)

// One of the simplest ways to address this exception is to check if the object being used is null
// Here is a sample code:
if (objectBeingChecked != null)
{
	// ...
}
else
{
	// raise error/exception
}
 
PREVIOUS NEXT
Tagged: #error
ADD COMMENT
Topic
Name
9+3 =