-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
bugSomething isn't workingSomething isn't workingfix verifiedThe implemented fix has been verified with an I-buildThe implemented fix has been verified with an I-build
Milestone
Description
It is assumed that a null layout data implies the center region, but BorderLayout.getTotal is not aware of this and throws:
Caused by: java.lang.NullPointerException
at org.eclipse.swt.layout.BorderLayout.lambda$4(BorderLayout.java:233)
at java.base/java.util.stream.ReferencePipeline$4$1.accept(ReferencePipeline.java:212)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.IntPipeline.reduce(IntPipeline.java:491)
at java.base/java.util.stream.IntPipeline.sum(IntPipeline.java:449)
at org.eclipse.swt.layout.BorderLayout.getTotal(BorderLayout.java:233)
at org.eclipse.swt.layout.BorderLayout.computeSize(BorderLayout.java:147)
at org.eclipse.swt.widgets.Composite.computeSizeInPixels(Composite.java:269)
at org.eclipse.swt.widgets.Control.computeSize(Control.java:837)
at org.eclipse.swt.widgets.Control.pack(Control.java:1609)
at org.eclipse.swt.widgets.Control.pack(Control.java:1584)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfix verifiedThe implemented fix has been verified with an I-buildThe implemented fix has been verified with an I-build