NullPointerException: de.jreality.writer.u3d.U3DSceneUtility
Posted: Sun 4. Sep 2011, 19:14
Hi,
in ...
... you check for "rootApp == null", after you access it one line above. This leads to a NullPointerException, if there's no root appearance.
Best regards, Joe
in ...
Code: Select all
public static SceneGraphComponent getSkyBox(JrScene scene) {
Appearance rootApp = scene.getSceneRoot().getAppearance();
Object skyBoxAttribute = rootApp.getAttribute(SKY_BOX);
if (rootApp == null || skyBoxAttribute == INHERITED) {
return null;
}
...
Best regards, Joe