Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when reading Devices / DeviceHierachies #73

Open
danielburkhart-itk opened this issue Feb 12, 2019 · 0 comments
Open

Comments

@danielburkhart-itk
Copy link
Contributor

I have seen some data cards crashing on import with a NullPointerException when reading Devices. A minimal example producing this exception is

<DVC A="DVC2" B="" C="" D="" E="" F="" G="">
	<DET A="DET2" B="1" C="1" D="" E="0" F="1"/>
</DVC>
<DVC A="DVC1" B="" C="" D="" E="" F="" G="">
	<DET A="DET1" B="1" C="1" D="" E="0" F="1"/>
</DVC>	

I understand that this example crashes, because the DET elements reference themselves. However, shouldn't the plugin skip such elements and be able to process the rest of the file?

The following example does not crash, although DET1 still references itself. Does someone understand this behavior?

<DVC A="DVC2" B="" C="" D="" E="" F="" G="">
	<DET A="DET2" B="1" C="1" D="" E="0" F="0"/>
</DVC>
<DVC A="DVC1" B="" C="" D="" E="" F="" G="">
	<DET A="DET1" B="1" C="1" D="" E="0" F="1"/>
</DVC>	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant