diff options
author | Harvey Harrison <[email protected]> | 2013-02-18 23:27:32 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-02-18 23:27:32 -0800 |
commit | f5be9bce5162778086c6ab6ae09da3b6dac3df43 (patch) | |
tree | 6e537c71ac2c8ff3084b4411363e472e47f6cd64 /src/classes | |
parent | ae614a6abbfbe5e3e62e727cfa57a7dcb9c2503f (diff) |
j3dcore: remove a null check, canvas cannot be null here
We would have NullPointerExceptioned already
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/Renderer.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/classes/share/javax/media/j3d/Renderer.java b/src/classes/share/javax/media/j3d/Renderer.java index af4aa7e..e39d6da 100644 --- a/src/classes/share/javax/media/j3d/Renderer.java +++ b/src/classes/share/javax/media/j3d/Renderer.java @@ -1462,9 +1462,7 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine new RenderingError(RenderingError.UNEXPECTED_RENDERING_ERROR, J3dI18N.getString("Renderer8")); err.setCanvas3D(canvas); - if (canvas != null) { - err.setGraphicsDevice(canvas.graphicsConfiguration.getDevice()); - } + err.setGraphicsDevice(canvas.graphicsConfiguration.getDevice()); notifyErrorListeners(err); } } |