NullPointerException when pasting a string with embedded new line on a filter editor

Issue #13 resolved
Former user created an issue

``` On version 4.1.2, an exception is raised when pasting an string with a newline. For example, pasting "java.lang.NullPointerException\n" raises:

java.lang.NullPointerException at net.coderazzi.filters.gui.editor.EditorComponent$TextController.updateFilter(EditorComponent.java:623) at net.coderazzi.filters.gui.editor.EditorComponent$EditableTC$ControllerDocumentFilter.editorUpdated(EditorComponent.java:778) at net.coderazzi.filters.gui.editor.EditorComponent$EditableTC$ControllerDocumentFilter.replace(EditorComponent.java:735) at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:647) at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1351) at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.handleReaderImport(BasicTextUI.java:2342) at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.importData(BasicTextUI.java:2483) at javax.swing.TransferHandler.importData(TransferHandler.java:745) at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.importData(BasicTextUI.java:2420) at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:1655) at javax.swing.text.JTextComponent.invokeAction(JTextComponent.java:1485) at javax.swing.text.JTextComponent.paste(JTextComponent.java:1463) at javax.swing.text.DefaultEditorKit$PasteAction.actionPerformed(DefaultEditorKit.java:1337) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633) at javax.swing.JComponent.processKeyBinding(JComponent.java:2851) at javax.swing.JComponent.processKeyBindings(JComponent.java:2886) at javax.swing.JComponent.processKeyEvent(JComponent.java:2814) at java.awt.Component.processEvent(Component.java:6044) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676) at java.awt.Component.dispatchEventImpl(Component.java:4502) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

```

Original issue reported on code.google.com by `luismpena` on 2011-04-04 17:53:49

Comments (4)

  1. coderazzi coderazzi repo owner

    ``` (No text was entered with this change) ```

    Original issue reported on code.google.com by `coderazzi` on 2011-04-05 12:56:12

  2. coderazzi coderazzi repo owner

    ``` Solved on version 4.1.3 ```

    Original issue reported on code.google.com by `coderazzi` on 2011-04-07 05:34:32

  3. coderazzi coderazzi repo owner

    ``` (No text was entered with this change) ```

    Original issue reported on code.google.com by `coderazzi` on 2011-11-14 23:12:55

  4. Log in to comment