Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.3
-
Fix Version/s: 4.3.1
-
Component/s: Core/Parsing, Viewer RI
-
Labels:None
-
Environment:jdk 1.6
-
Workaround Exists:Yes
-
Workaround Description:
Description
In main(String[]) the following example code is given:
// build a component controller
SwingController controller = new SwingController();
SwingViewBuilder factory = new SwingViewBuilder(controller);
JPanel viewerComponentPanel = factory.buildViewerPanel();
However calling "factory.buildViewerPanel()" throws a NullPointerException:
Exception in thread "main" java.lang.NullPointerException
at org.icepdf.ri.common.ThumbnailsPanel.<init>(ThumbnailsPanel.java:60)
at org.icepdf.ri.common.SwingViewBuilder.buildThumbsPanel(SwingViewBuilder.java:1565)
at org.icepdf.ri.common.SwingViewBuilder.buildUtilityTabbedPane(SwingViewBuilder.java:1533)
at org.icepdf.ri.common.SwingViewBuilder.buildUtilityAndDocumentSplitPane(SwingViewBuilder.java:1483)
at org.icepdf.ri.common.SwingViewBuilder.buildContents(SwingViewBuilder.java:481)
at org.icepdf.ri.common.SwingViewBuilder.buildViewerPanel(SwingViewBuilder.java:464)
at ViewerComponentExample.main(ViewerComponentExample.java:41)
// build a component controller
SwingController controller = new SwingController();
SwingViewBuilder factory = new SwingViewBuilder(controller);
JPanel viewerComponentPanel = factory.buildViewerPanel();
However calling "factory.buildViewerPanel()" throws a NullPointerException:
Exception in thread "main" java.lang.NullPointerException
at org.icepdf.ri.common.ThumbnailsPanel.<init>(ThumbnailsPanel.java:60)
at org.icepdf.ri.common.SwingViewBuilder.buildThumbsPanel(SwingViewBuilder.java:1565)
at org.icepdf.ri.common.SwingViewBuilder.buildUtilityTabbedPane(SwingViewBuilder.java:1533)
at org.icepdf.ri.common.SwingViewBuilder.buildUtilityAndDocumentSplitPane(SwingViewBuilder.java:1483)
at org.icepdf.ri.common.SwingViewBuilder.buildContents(SwingViewBuilder.java:481)
at org.icepdf.ri.common.SwingViewBuilder.buildViewerPanel(SwingViewBuilder.java:464)
at ViewerComponentExample.main(ViewerComponentExample.java:41)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion