* 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,12 +98,14 @@ public final class Env
}
**/
//bug [ 1574630 ]
if (!finalCall) {
Container c = s_windows.get(0);
s_windows.clear();
createWindowNo(c);
} else {
s_windows.clear();
if (s_windows.size() > 0) {
if (!finalCall) {
Container c = s_windows.get(0);
s_windows.clear();
createWindowNo(c);
} else {
s_windows.clear();
}
}
// Clear all Context