mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 07:09:55 +00:00
6995769: occasion NPE thrown from SwingUtilities.computeIntersection()
Reviewed-by: alexp
This commit is contained in:
parent
d8fd6d70de
commit
6abadbf15a
@ -758,6 +758,11 @@ public class RepaintManager
|
||||
for(i=0 ; i < count ; i++) {
|
||||
dirtyComponent = roots.get(i);
|
||||
rect = tmpDirtyComponents.get(dirtyComponent);
|
||||
// Sometimes when RepaintManager is changed during the painting
|
||||
// we may get null here, see #6995769 for details
|
||||
if (rect == null) {
|
||||
continue;
|
||||
}
|
||||
localBoundsH = dirtyComponent.getHeight();
|
||||
localBoundsW = dirtyComponent.getWidth();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user