Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0 - Beta
-
Fix Version/s: 4.0
-
Component/s: Viewer RI
-
Labels:None
-
Environment:RI Viewer
-
Workaround Description:Edit Swing controller and comment out PrintHelper null pointer check in ShowPrintSetupDailog and initializePrinting dialogs.
Description
The Swing controller will though a null pointer when opening a second document for printing.
1. Open a document, print it
2. Close the first document
3. Open a second document, print it.
4. a null pointer will result.
1. Open a document, print it
2. Close the first document
3. Open a second document, print it.
4. a null pointer will result.
Activity
Patrick Corless
created issue -
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Workaround Description | Edit Swing controller and comment out PrintHelper null pointer check in ShowPrintSetupDailog and initializePrinting dialogs. | |
Salesforce Case | [] | |
Fix Version/s | 4.0 [ 10222 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #20197 | Tue Jan 12 11:45:04 MST 2010 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
|
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The SwingController was lazy loading the PrintHelper object and thus only setting up the reference to the pageTree of the first document loaded and not for any subsequent documents. I've updated the SwingController to make sure it creates a new instance of the printHelper when a new document is loaded.