Skip to content

NPE in classifier info view #2884

Description

@lwrage

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions