aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-03-05 09:46:26 -0800
committerHarvey Harrison <[email protected]>2012-03-05 09:46:26 -0800
commitb0eee1722abe419e5956595f5f2274bfc6094122 (patch)
tree1a15dd5edbdbb486b9b2b325c5127393e75c7d4f /src/classes
parenta2740c308967094271cebfb18554984e7ee4464b (diff)
j3dcore: ViewPlatformRetained::getViewList cannot return null
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/share/javax/media/j3d/ViewPlatformRetained.java19
1 files changed, 9 insertions, 10 deletions
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();