[Source] NPE fix proposal
Alan Hudson
alan at shapeways.com
Thu Jun 7 13:25:31 PDT 2012
On 6/7/2012 1:07 PM, Don Brutzman wrote:
> Offline rendering triggers a bug in line (195/197) of OGLInline.java,
> here is a fix. Note that root cause isn't addressed...
>
> if (implGroup.isLive()) {
> stateManager.addEndOfThisFrameListener(this);
> } else {
> updateNodeBoundsChanges(null);
> }
>
> to
> // avoid occasional null-pointer exception (NPE) when offline
> rendering scenes, such as
> //
> http://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/ChopperRotor.x3d
> if ((implGroup != null) && implGroup.isLive()) {
> etc.
>
> C:\Xj3D.nps\src\java\org\web3d\vrml\renderer\ogl\nodes\networking\OGLInline.java
>
>
when you say offline rendering are you referring to replica in
apps/replica? Just want to make sure I understand the context.
--
Alan Hudson, Director 3D Tools
www.shapeways.com
More information about the Source
mailing list