提交 ecc1547f 编写于 作者: R rupashka

6995769: occasion NPE thrown from SwingUtilities.computeIntersection()

Reviewed-by: alexp
上级 65a27f3e
...@@ -758,6 +758,11 @@ public class RepaintManager ...@@ -758,6 +758,11 @@ public class RepaintManager
for(i=0 ; i < count ; i++) { for(i=0 ; i < count ; i++) {
dirtyComponent = roots.get(i); dirtyComponent = roots.get(i);
rect = tmpDirtyComponents.get(dirtyComponent); 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(); localBoundsH = dirtyComponent.getHeight();
localBoundsW = dirtyComponent.getWidth(); localBoundsW = dirtyComponent.getWidth();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册