From b0eee1722abe419e5956595f5f2274bfc6094122 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 5 Mar 2012 09:46:26 -0800 Subject: j3dcore: ViewPlatformRetained::getViewList cannot return null Signed-off-by: Harvey Harrison --- .../share/javax/media/j3d/ViewPlatformRetained.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/classes/share') diff --git a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java index 47cb248..e3c8bf2 100644 --- a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java +++ b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java @@ -389,21 +389,20 @@ View[] getViewList() { } } - /** - * Use by BehaviorStructure to determine whether current - * ViewPlatform is active or not. - */ - boolean isActiveViewPlatform() { +/** + * Use by BehaviorStructure to determine whether current + * ViewPlatform is active or not. + */ +boolean isActiveViewPlatform() { View v[] = getViewList(); - if (v != null) { - for (int i=0; i < v.length; i++) { + for (int i = 0; i < v.length; i++) { if (v[i].active) { - return true; + return true; } - } } + return false; - } +} void processSwitchChanged() { reEvaluateView(); -- cgit v1.2.3