Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE: Cannot invoke "String.length()" because "suffix" is null #105

Open
onewhl opened this issue Feb 9, 2023 · 1 comment
Open

NPE: Cannot invoke "String.length()" because "suffix" is null #105

onewhl opened this issue Feb 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@onewhl
Copy link
Collaborator

onewhl commented Feb 9, 2023

Project: https://github.com/JetBrains/Arend
Commit: 7a22759be067534970e82d854f605310abad6f34
Stacktrace:

Cannot invoke "String.length()" because "suffix" is null
java.lang.NullPointerException: Cannot invoke "String.length()" because "suffix" is null
	at java.base/java.lang.String.endsWith(String.java:2315)
	at org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider.fromSameFile(DiffHintLineMarkerProvider.java:124)
	at org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider.lambda$getRefactoringInfos$3(DiffHintLineMarkerProvider.java:116)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider.getRefactoringInfos(DiffHintLineMarkerProvider.java:116)
	at org.jetbrains.research.refactorinsight.ui.DiffHintLineMarkerProvider.collectSlowLineMarkers(DiffHintLineMarkerProvider.java:65)
@onewhl onewhl added the bug Something isn't working label Feb 9, 2023
@anchouls
Copy link
Collaborator

anchouls commented Feb 9, 2023

I don't have this error on this commit. Also, refactorings aren't recognized on this commit, so this function shouldn't be called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants