argouml-tigris-org / argouml

Main project of argouml. Some information in the wiki. Some old releases in releases. (depends on parentpom, testmodels)
246 stars 92 forks source link

ArgoUML crash when a UML notation provider is not found #22

Closed stcarrez closed 4 years ago

stcarrez commented 4 years ago

When some module provides a UML notation provider and that provider is not found, ArgoUML crashes when the user's model file is loaded.

The crash is caused by getNotationProvider which fails to find a class for the notation provider. It then returns null and we crash since the caller does not check for that. The end result is that ArgoUML fails to load you model that you took a lot of care to manage during many years...

juin 20, 2020 9:48:15 AM org.argouml.notation.NotationProviderFactory2 getNotationProvider
GRAVE: No notation provider for UML 1.4 type 21

In my case, the missing provider was:

    public static final int TYPE_SD_MESSAGE = 21;

which is setup by the SequenceDiagramModule which for some reason was not loaded.

By fixing that crash, I was able to load successfully and continue using my UML models.