anuragraghavan / franca

Automatically exported from code.google.com/p/franca
0 stars 0 forks source link

FrancaPersistenceManager crashes when saving a model with imports #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Programmatically create an FModel with a type definition
2. Save it with a FrancaPersistenceManager
3. Create a second FModel
4. Add an import to the second model that references the file the first model 
has been saved to
5. Save the second model with a FrancaPersistenceManager to a file in the same 
directory as the first model

What is the expected output? What do you see instead?

The Franca IDL file with the second model should be saved to the specified 
location and FrancaPersistenceManager.saveModel() should return true.

Instead, FrancaPersistenceManager.saveModel() crashes with a 
NullPointerException when it tries to save the imported first model.

What version of the product are you using? On what operating system?

I am using Franca SDK 0.8.11 on Linux with Eclipse Kepler SR2

Please provide any additional information below.
- I have attached a JUnit test case that reproduces the crash in my setup.
- The NullPointerException originally occured in a model transformation I am 
currently developing. I had already successfully transformed and saved the 
first model that provides type definitions. Then I ran my transformation on the 
second model (from the Eclipse context menu) that imports the first one and 
uses the defined types.

Original issue reported on code.google.com by klaus....@intel.com on 12 May 2014 at 11:38

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 13 May 2014 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 6 Nov 2014 at 12:03

GoogleCodeExporter commented 9 years ago
Implemented with commit 84f8945 on develop.

Original comment by klaus.birken@gmail.com on 8 Dec 2014 at 10:42

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 19 Dec 2014 at 2:33

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 25 Jan 2015 at 11:20