|
From: Vos, J. <jv...@an...> - 2003-06-23 16:32:27
|
If you open a new display with the same title as one that is already open
the FrameFactory code crashes. If you first close the display you can
reopen as many displays with the same title as you'd like, but if you don't
this code
FrameData data = (FrameData) dataMap.get(title);
if (data != null) {
frame.setBounds(data.bounds);
data.frame = frame;
} else {
data = new FrameData(title, null, frame);
dataMap.put(title, data);
}
crashes with a null pointer exception at frame.setBounds(data.bounds);
oh and if you change it to
if (data != null)
if (data.bounds != null)
...
you end up with two windows, one that doesn't work.
|