sts4 icon indicating copy to clipboard operation
sts4 copied to clipboard

[exception from inside jdt ls] Cannot invoke "String.length()" because "typeSignature" is null

Open martinlippert opened this issue 2 months ago • 2 comments

java.lang.NullPointerException: Cannot invoke "String.length()" because "typeSignature" is null
	at org.eclipse.jdt.internal.compiler.parser.TypeConverter.createTypeReference(TypeConverter.java:129)
	at org.eclipse.jdt.internal.core.BinaryTypeConverter.createTypeReference(BinaryTypeConverter.java:348)
	at org.eclipse.jdt.internal.core.BinaryTypeConverter.convert(BinaryTypeConverter.java:200)
	at org.eclipse.jdt.internal.core.BinaryTypeConverter.convert(BinaryTypeConverter.java:312)
	at org.eclipse.jdt.internal.core.BinaryTypeConverter.buildTypeDeclaration(BinaryTypeConverter.java:99)
	at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectType(SelectionEngine.java:1591)
	at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:319)
	at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:261)
	at org.springframework.tooling.jdt.ls.commons.java.JavaData.resolveFQName(JavaData.java:530)
	at org.springframework.tooling.jdt.ls.commons.java.JavaData.fillTypeDescriptorData(J

martinlippert avatar Oct 22 '25 12:10 martinlippert

I'm thinking of logging this NPE with the type name that failed to resolve with an NPE.

BoykoAlex avatar Oct 22 '25 22:10 BoykoAlex

So the first step here will be to add more detailed information to the exception and roll that out with the next release, so that we can dive deeper for 5.1.0 then. Therefore, moving this towards 5.1.0

martinlippert avatar Nov 12 '25 10:11 martinlippert