* Check s_windows.size before calling clear
This commit is contained in:
parent
a27463844d
commit
8417376581
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue