Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320706

Summary: [General] Papyrus gives misleading error messages, if model load fails
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yann.tanguy
Version: unspecifiedFlags: sebastien.gerard: iplog-
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fixes the problem by adding nested exceptions sebastien.gerard: iplog+

Description Ansgar Radermacher CLA 2010-07-23 07:14:25 EDT
Build Identifier: 

If a damaged model is opened, the exception is catched and logged, but execution continues. In the sequence, an NPE is triggered due to not-initialized variables. The user only sees this message (unless he examines the log). He should see the original UML2 error message instead, since it might contain a hint what is broken/how-to fix the file.

Reproducible: Always
Comment 1 Ansgar Radermacher CLA 2010-07-23 07:17:58 EDT
Created attachment 175051 [details]
Fixes the problem by adding nested exceptions
Comment 2 Yann Tanguy CLA 2010-07-23 07:47:35 EDT
Commit in r2457.