jsonSchema-to-uml icon indicating copy to clipboard operation
jsonSchema-to-uml copied to clipboard

NullPointerException

Open ghost opened this issue 5 years ago • 1 comments

Hello, im having two issues:

  1. I have a JSON file (https://github.com/dashevo/dpns-contract/blob/v0.2-dev/src/schema/dpns-documents.json) that visualizes great with your "JSON Discoverer" but does not work at all with this eclipse plugin. Actually none of my simple examples run. They all have no header and just start with the json structure. There will be no errror and the resulting uml is just:

<?xml version="1.0" encoding="UTF-8"?> <uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_DZCE0EHBEeqcCL9vRpPMpg" name="myJSON"> <packagedElement xmi:type="uml:Package" xmi:id="_DZCE0UHBEeqcCL9vRpPMpg" name="myJSON"> <packagedElement xmi:type="uml:Class" xmi:id="_DZCE0kHBEeqcCL9vRpPMpg" name="Unknown"/> <packagedElement xmi:type="uml:Class" xmi:id="_DZCE00HBEeqcCL9vRpPMpg" name="Dpns-schema"/> </packagedElement> </uml:Model>

  1. So it seems the eclipse plugin needs a header with "schema" and "id". But now I tested the testValid.json from your repo (https://github.com/SOM-Research/jsonSchema-to-uml/blob/master/plugins/edu.uoc.som.jsonschematouml.test/inputs/testValid.json) and this file produces NullPointerException: An internal error occurred during: "edu.uoc.som.jsonschematouml.ui.popup.handlers.ConvertToClassDiagram". java.lang.NullPointerException

I saw the solved issue with similar problem, but testValid.json should have valid URI as id.

best regards,

ghost avatar Jan 28 '20 11:01 ghost

Hello @readme55, thanks for the feedback, I'll have a look to that thing and report back asap

jlcanovas avatar Jan 28 '20 11:01 jlcanovas