Index: CloneableEditor.java =================================================================== RCS file: /cvs/openide/src/org/openide/text/CloneableEditor.java,v retrieving revision 1.25.4.2 retrieving revision 1.25.4.3 diff -u -r1.25.4.2 -r1.25.4.3 --- CloneableEditor.java 29 Nov 2001 09:07:24 -0000 1.25.4.2 +++ CloneableEditor.java 30 Nov 2001 14:33:25 -0000 1.25.4.3 @@ -473,7 +473,8 @@ PasteAction sysPaste = ((PasteAction)SystemAction.get(PasteAction.class)); Clipboard c = (Clipboard)Lookup.getDefault().lookup(Clipboard.class); - if(c != null && c.getContents(null).isDataFlavorSupported(DataFlavor.stringFlavor)) { + Transferable tr = (c != null ? c.getContents(null) : null); + if(tr != null && tr.isDataFlavorSupported(DataFlavor.stringFlavor)) { sysPaste.setPasteTypes(new PasteType[] { new PasteType () { public Transferable paste () {