Open tordanik opened 11 years ago
I believe what happens is that the fields initialized with null
in Output.java keep that value because none of the if - else if blocks is reached, and it is then passed into the ImageExporter
and JOGLTarget
methods.
Excuse me, but to better understand this. The problem is that ConversionFacade cf is not properly set up in lines 53-75 because no conditional branch is triggered? And then something breaks when calling a method in JOGLTarget?
Thanks in advance.
The problem is actually in the section between the lines 84 and 134. The camera and projection variables are never set in some cases, which causes the NPE.
Entirely omitting camera information with PNG output causes a NullPointerException:
It would be preferable to fall back to the bounds in the data file and/or print a better warning.