User 57295192cc
10-04-2013 11:59:04
Hi,
I found the following issue (was present in 5.12 and it's still there in 5.12.2):
When using MSketchPane on a dialog, launched from an applet for the first time, a NullPointerException is thrown:
NullPointerException
chemaxon.marvin.uif.util.swing.ToolBarBoxLayout.checkRequests(ToolBarBoxLayout.java:218)
chemaxon.marvin.uif.util.swing.ToolBarBoxLayout.preferredLayoutSize(ToolBarBoxLayout.java:187)
chemaxon.marvin.uif.util.swing.ToolBarLayout.preferredLayoutSize(ToolBarLayout.java:63)
chemaxon.marvin.uif.util.swing.SeparatorHandlerLayout$AbstractWrapper.preferredLayoutSize(SeparatorHandlerLayout.java:95)
java.awt.Container.preferredSize(Container.java:1597)
java.awt.Container.getPreferredSize(Container.java:1582)
javax.swing.JComponent.getPreferredSize(JComponent.java:1644)
cb.aloe.swing.tools.Dock.getPreferredToolBarDepth(Unknown Source)
cb.aloe.swing.tools.k.c(Unknown Source)
cb.aloe.swing.tools.a.getPreferredDepth(Unknown Source)
cb.aloe.swing.tools.i.preferredLayoutSize(Unknown Source)
java.awt.Container.preferredSize(Container.java:1597)
java.awt.Container.getPreferredSize(Container.java:1582)
javax.swing.JComponent.getPreferredSize(JComponent.java:1644)
java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:702)
java.awt.Container.preferredSize(Container.java:1597)
java.awt.Container.getPreferredSize(Container.java:1582)
javax.swing.JComponent.getPreferredSize(JComponent.java:1644)
java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1092)
java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:893)
java.awt.GridBagLayout.ArrangeGrid(GridBagLayout.java:2048)
java.awt.GridBagLayout.arrangeGrid(GridBagLayout.java:2008)
java.awt.GridBagLayout.layoutContainer(GridBagLayout.java:789)
java.awt.Container.layout(Container.java:1419)
java.awt.Container.doLayout(Container.java:1408)
java.awt.Container.validateTree(Container.java:1505)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validateTree(Container.java:1511)
java.awt.Container.validate(Container.java:1478)
java.awt.Window.pack(Window.java:716)
It only happens when I try to open the dialog for the first time, with an empty plugin cache. (Even after restarting the browser, but leaving the already loaded jars in the cache, it works fine.)
The dialog (with MSketchPane) is constructed in a separate thread -- I'm not sure whether this is important though.
Can you please look into this?
Many thanks,
Pál