Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java.lang.nullpointerexception: cannot invoke "java.lang.charsequence.length()" because "this.text" is null

The object "this.text" is null, and the program is trying to get the "length();"
of the object. Initialize "this.text" first, or check if "this.text" is not null.
 
PREVIOUS NEXT
Tagged: #invoke #null
ADD COMMENT
Topic
Name
6+9 =