eclipse-uml2 / uml2

An EMF-based implementation of the UML 2.x metamodel for the Eclipse platform.
Eclipse Public License 2.0
5 stars 4 forks source link

NullPointerException in UML2EcoreConverter #95

Open eclipse-uml2-bot opened 1 week ago

eclipse-uml2-bot commented 1 week ago

| --- | --- | | Bugzilla Link | 546702 | | Status | NEW | | Importance | P3 normal | | Reported | Apr 24, 2019 10:51 EDT | | Modified | Apr 24, 2019 11:04 EDT | | Version | 5.5.0 | | See also | Gerrit change https://git.eclipse.org/r/141079 | | Reporter | Camille Letavernier |

Description

The null pointer was introduced with Bug 544487, and happens in UML2EcoreConverter when Diagnostics is null. In some of the new cases for Optional Attributes, we don't check if the diagnostics instance is actually present before adding a new diagnostic

I don't have the stack trace but it would happen in org.eclipse.uml2.uml.util.UMLUtil.UML2EcoreConverter.caseProperty(Property) when diagnostics null

The bug affects the (unreleased) version 5.6.0

eclipse-uml2-bot commented 1 week ago

Apr 24, 2019 11:04

New Gerrit change created: https://git.eclipse.org/r/141079