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

Bug 315355

Summary: NPE while converting a KDM source model to UML
Product: [Modeling] MoDisco Reporter: Frédéric Madiot <frederic.madiot>
Component: MainAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: fabien.giquel, gdupe, hugo.bruneliere, modisco.web-inbox, nicolas.bros
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frédéric Madiot CLA 2010-06-02 04:19:30 EDT
A NPE occurs when converting a KDM source model to UML
In RC2
Comment 1 Nicolas Bros CLA 2010-06-02 08:52:51 EDT
I just tested with Eclipse 3.6RC2 (201005260304) and MoDisco 0.8.0 RC2 ( 0.8.0.v201005260304) installed from http://download.eclipse.org/releases/helios.

- created a Java project
- created a Java class with a main method and a print statement
- did "Discover KDM code model from Java project" on the Java project
- then "Discover UML model from KDM model" on the KDM model

It works for me: I get a UML model and no error.

Could you provide a complete scenario to reproduce your error?
A stacktrace would be useful too.
Comment 2 Fabien Giquel CLA 2010-06-03 04:19:24 EDT
The error occurs when transforming "kdm.source" model to "uml" model.
kdm.source models contains only informations about artefacts hierarchy but no information about Java code it self.

The scenario is :

- created a Java project
- did "Discover KDM source model from Java project" on the Java project
- then "Discover UML model from KDM model" on the KDM model.
Comment 3 Fabien Giquel CLA 2010-06-03 06:38:51 EDT
The issue was already fixed for 0.9.0 (see 312380)
As it is not a critical issue, it will not be fixed in 0.8.0 RC4 (Helios).

*** This bug has been marked as a duplicate of bug 312380 ***
Comment 4 Hugo Bruneliere CLA 2010-10-04 13:30:59 EDT
Bug fixed in original bug.