<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pdfviewer/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pdfviewer/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pdfviewer/bugs/</id><updated>2010-11-11T15:41:57Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>PDFRenderer.jar is outdated, cannot work with encrypted PDFs</title><link href="https://sourceforge.net/p/pdfviewer/bugs/4/" rel="alternate"/><published>2010-11-11T15:41:57Z</published><updated>2010-11-11T15:41:57Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net80efb70d2162271cdd7245ae39b5e3aa351dcc0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The version of the PDFRenderer library provided with the PDF Viewer plugin seems to be complied from older code and does not handle password protected PDFs. Please provide the current version of PDFRenderer with PDF Viewer.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>NullPointerException when displaying PdfViewerComposite</title><link href="https://sourceforge.net/p/pdfviewer/bugs/3/" rel="alternate"/><published>2010-03-10T08:44:15Z</published><updated>2010-03-10T08:44:15Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netcee4d3c2edb8d04385eb5c1140f4baa8e8333444</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I receive many NullPointerExceptions when displaying the PdfViewerComposite&lt;/p&gt;
&lt;p&gt;The following stacktrace shows the error, but I do not know what it causes.&lt;/p&gt;
&lt;p&gt;Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException&lt;br /&gt;
at org.nightlabs.eclipse.ui.pdfviewer.internal.PdfViewerComposite$17.run(PdfViewerComposite.java:1217)&lt;br /&gt;
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)&lt;br /&gt;
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)&lt;br /&gt;
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)&lt;/p&gt;
&lt;p&gt;I used the following code to display the PdfViewerComposite:&lt;/p&gt;
&lt;p&gt;/** Dispose old viewer */&lt;br /&gt;
pdfViewerComposite = ( (PDFReportView)getView () ).getPdfViewerComposite ();&lt;br /&gt;
if ( pdfViewerComposite != null )&lt;br /&gt;
{&lt;br /&gt;
pdfViewerComposite.dispose ();&lt;br /&gt;
}&lt;br /&gt;
/** Create a new viewer */&lt;/p&gt;
&lt;p&gt;pdfViewerComposite = new PdfViewerComposite ( parent, SWT.BORDER, pdfDocument, PdfViewerCompositeOption.NO_COOL_BAR );&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>NullPointerException when displaying PdfViewerComposite</title><link href="https://sourceforge.net/p/pdfviewer/bugs/2/" rel="alternate"/><published>2010-03-08T18:08:40Z</published><updated>2010-03-08T18:08:40Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net4749161b72d93ecbdf351e0a0ec11ce9388b2cc9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I receive many NullPointerExceptions when displaying the PdfViewerComposite&lt;/p&gt;
&lt;p&gt;The following stacktrace shows the error, but I do not know what it causes.&lt;/p&gt;
&lt;p&gt;Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException&lt;br /&gt;
at org.nightlabs.eclipse.ui.pdfviewer.internal.PdfViewerComposite$17.run(PdfViewerComposite.java:1217)&lt;br /&gt;
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)&lt;br /&gt;
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)&lt;br /&gt;
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)&lt;br /&gt;
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)&lt;/p&gt;
&lt;p&gt;I used the following code to display the PdfViewerComposite:&lt;/p&gt;
&lt;p&gt;/** Dispose old viewer */&lt;br /&gt;
pdfViewerComposite = ( (PDFReportView)getView () ).getPdfViewerComposite ();&lt;br /&gt;
if ( pdfViewerComposite != null )&lt;br /&gt;
{&lt;br /&gt;
pdfViewerComposite.dispose ();&lt;br /&gt;
}&lt;br /&gt;
/** Create a new viewer */&lt;/p&gt;
&lt;p&gt;pdfViewerComposite = new PdfViewerComposite ( parent, SWT.BORDER, pdfDocument, PdfViewerCompositeOption.NO_COOL_BAR );&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>NullPointerException when Config does not exist</title><link href="https://sourceforge.net/p/pdfviewer/bugs/1/" rel="alternate"/><published>2009-12-08T12:34:54Z</published><updated>2009-12-08T12:34:54Z</updated><author><name>Marco Schulze</name><uri>https://sourceforge.net/u/nlmarco/</uri></author><id>https://sourceforge.net0dcbdda54ded6141358ad51dd458911d453f990b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As documented in this forum post, the pdf-viewer-plugin does not work at all, if there is no Config (an ugly NullPointerException is thrown):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/projects/pdfviewer/forums/forum/866211/topic/3481661/index/page/1"&gt;https://sourceforge.net/projects/pdfviewer/forums/forum/866211/topic/3481661/index/page/1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A NullPointerException (without any message) is not helpful. Thus, if the Config is really absolutely required, there should be a nicer exception telling the developer that he must call Config.createSharedInstance(...) before. But IMHO, the Config is only used for the DocumentPrinter-configuration and therefore not necessary for viewing PDF files. Therefore, the Config should be optional and there should be a warning logged (with detailed information about Config.createSharedInstance(...) and what consequences it has to not call it - i.e. what features are not available). The functionality that absolutely requires the config (probably the print action only) should either be disabled or better invisible when there is no Config existing.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>