* Check s_windows.size before calling clear

This commit is contained in:
Heng Sin Low 2007-01-09 14:14:58 +00:00
parent a27463844d
commit 8417376581
1 changed files with 8 additions and 6 deletions

View File

@ -98,6 +98,7 @@ public final class Env
}
**/
//bug [ 1574630 ]
if (s_windows.size() > 0) {
if (!finalCall) {
Container c = s_windows.get(0);
s_windows.clear();
@ -105,6 +106,7 @@ public final class Env
} else {
s_windows.clear();
}
}
// Clear all Context
if (finalCall)