Buggy code:
public void setFitWidthMenuItem ( JMenuItem mi ) { } public void setZoomInMenuItem ( JMenuItem mi ) { } public void setZoomOutMenuItem ( JMenuItem mi ) { } public void setRotateLeftMenuItem ( JMenuItem mi ) { } public void setRotateRightMenuItem ( JMenuItem mi ) { } public void setShowHideToolBarMenuItem ( JMenuItem mi ) { } public void setShowHideUtilityPaneMenuItem ( JMenuItem mi ) { } public void setFirstPageMenuItem ( JMenuItem mi ) { } public void setPreviousPageMenuItem ( JMenuItem mi ) { } public void setNextPageMenuItem ( JMenuItem mi ) { } public void setLastPageMenuItem ( JMenuItem mi ) { } public void setSearchMenuItem ( JMenuItem mi ) { } public void setGoToPageMenuItem ( JMenuItem mi ) { } public void setMinimiseAllMenuItem ( JMenuItem mi ) { } public void setBringAllToFrontMenuItem ( JMenuItem mi ) { } public void setWindowListMenuItems ( List menuItems ) { } public void setAboutMenuItem ( JMenuItem mi ) { } public void setOpenFileButton ( JButton btn ) { } public void setSaveAsFileButton ( JButton btn ) { } public void setPrintButton ( JButton btn ) { } public void setSearchButton ( JButton btn ) { } public void setShowHideUtilityPaneButton ( JToggleButton btn ) { } public void setFirstPageButton ( JButton btn ) { } public void setPreviousPageButton ( JButton btn ) { } public void setNextPageButton ( JButton btn ) { } public void setLastPageButton ( JButton btn ) { } public void setCurrentPageNumberTextField ( JTextField textField ) { } public void setNumberOfPagesLabel ( JLabel lbl ) { } public void setZoomOutButton ( JButton btn ) { } public void setZoomComboBox ( JComboBox zcb , float [ ] zl ) { } public void setZoomInButton ( JButton btn ) { } public void setFitActualSizeButton ( JToggleButton btn ) { } public void setFitHeightButton ( JToggleButton btn ) { } public void setFontEngineButton ( JToggleButton btn ) { } public void setFitWidthButton ( JToggleButton btn ) { } public void setRotateLeftButton ( JButton btn ) { } public void setRotateRightButton ( JButton btn ) { } public void setPanToolButton ( JToggleButton btn ) { } public void setZoomInToolButton ( JToggleButton btn ) { } public void setTextSelectToolButton ( JToggleButton btn ) { } public void setSelectToolButton ( JToggleButton btn ) { } public void setLinkAnnotationToolButton ( JToggleButton btn ) { } public void setHighlightAnnotationToolButton ( JToggleButton btn ) { } public void setHighlightAnnotationUtilityToolButton ( JToggleButton btn ) { } public void setStrikeOutAnnotationToolButton ( JToggleButton btn ) { } public void setUnderlineAnnotationToolButton ( JToggleButton btn ) { } public void setLineAnnotationToolButton ( JToggleButton btn ) { } public void setLineArrowAnnotationToolButton ( JToggleButton btn ) { } public void setSquareAnnotationToolButton ( JToggleButton btn ) { } public void setCircleAnnotationToolButton ( JToggleButton btn ) { } public void setInkAnnotationToolButton ( JToggleButton btn ) { } public void setFreeTextAnnotationToolButton ( JToggleButton btn ) { } public void setTextAnnotationToolButton ( JToggleButton btn ) { } public void setTextAnnotationUtilityToolButton ( JToggleButton btn ) { } public void setZoomDynamicToolButton ( JToggleButton btn ) { } public void setCompleteToolBar ( JToolBar toolbar ) { } public void setOutlineComponents ( JTree tree , JScrollPane scroll ) { } public void setSearchPanel ( SearchPanel sp ) { } public void setThumbnailsPanel ( ThumbnailsPanel tn ) { } public void setLayersPanel ( LayersPanel tn ) { } public void setAnnotationPanel ( AnnotationPanel lp ) { } public void setUtilityTabbedPane ( JTabbedPane util ) { } public void setIsEmbeddedComponent ( boolean embeddableComponent ) { } public void setUtilityAndDocumentSplitPane ( JSplitPane splitPane ) { } public void setStatusLabel ( JLabel lbl ) { } public JFrame getViewerFrame ( ) { } public void setViewerFrame ( JFrame v ) { } public boolean isPdfCollection ( ) { Catalog catalog = document . getCatalog ( ) ; <START_BUG> if ( ( ( ( catalog . getNames ( ) ) != null ) && ( ( catalog . getNames ( ) . getEmbeddedFilesNameTree ( ) ) != null ) ) && ( ( catalog . getNames ( ) . getEmbeddedFilesNameTree ( ) . getRoot ( ) . getNamesAndValues ( ) ) != null ) ) { <END_BUG> if ( ( ( catalog . getObject ( PAGEMODE_KEY ) ) == null ) || ( ( ( Name ) ( catalog . getObject ( PAGEMODE_KEY ) ) ) . getName ( ) . equalsIgnoreCase ( "UseAttachments" ) ) ) { return true ; } } return false ; } private void reflectStateInComponents ( ) { } private void reflectPageChangeInComponents ( ) { } public boolean havePermissionToPrint ( ) { } public boolean havePermissionToExtractContent ( ) { } public boolean havePermissionToModifyDocument ( ) { } private void setEnabled ( JComponent comp , boolean ena ) { } private void setZoomFromZoomComboBox ( ) { } public void reflectUndoCommands ( ) { } private void reflectZoomInZoomComboBox ( ) { } public int getDocumentViewToolMode ( ) { } public void setDisplayTool ( final int argToolName ) { } private void setCursorOnComponents ( final int cursorType ) { } private void reflectToolInToolButtons ( ) { } private void reflectFitInFitButtons ( ) { } private void reflectDocumentViewModeInButtons ( ) { } private void reflectSelectionInButton ( AbstractButton btn , boolean selected ) { } public void openFile ( ) { } private void openFileInSomeViewer ( File file ) { } public void openFileInSomeViewer ( String filename ) { } public void openDocument ( String pathname ) { } public void openURL ( ) { } private void openURLInSomeViewer ( URL url ) { } public void openDocument ( final URL location ) { } public void openDocument ( InputStream inputStream , String description , String pathOrURL ) { } public void openDocument ( Document embeddedDocument , String fileName ) { } public void openDocument ( byte [ ] data , int offset , int length , String description , String pathOrURL ) { } public void commonNewDocumentHandling ( String fileDescription ) { } public void closeDocument ( ) { } public void dispose ( ) { }

Fix:
if ( ( ( ( catalog . getNames ( ) ) != null ) && ( ( catalog . getNames ( ) . getEmbeddedFilesNameTree ( ) ) != null ) ) && ( ( catalog . getNames ( ) . getEmbeddedFilesNameTree ( ) . getRoot ( ) ) != null ) ) {