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 in classifier info view #2884

Closed
lwrage opened this issue Jan 21, 2024 · 0 comments
Closed

NPE in classifier info view #2884

lwrage opened this issue Jan 21, 2024 · 0 comments

Comments

@lwrage
Copy link
Contributor

lwrage commented Jan 21, 2024

Summary
The following NPE was logged when renaming files/packages with items open in the view.

Expected behavior

No NPE

Actual behavior

NPE in the log:

!ENTRY org.eclipse.core.resources 4 2 2024-01-21 15:23:09.272
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException: Cannot invoke "String.equalsIgnoreCase(String)" because the return value of "org.eclipse.core.resources.IResource.getFileExtension()" is null
	at org.osate.ui.views.ClassifierInfoView$Listener.lambda$0(ClassifierInfoView.java:848)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:51)
	at org.osate.ui.views.ClassifierInfoView$Listener.resourceChanged(ClassifierInfoView.java:843)

Steps To Reproduce

Not sure about the exact steps.

Desktop (please complete the following information):

  • OSATE Version: 2.14.0 snapshot
  • Operating System: Ubuntu
@lwrage lwrage closed this as completed in fb6ef01 Mar 14, 2024
@lwrage lwrage added this to the 2.14.0 milestone Mar 25, 2024
@lwrage lwrage added the core label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant