Index: trunk/src/event/editor/CHPRadioPanel.java
===================================================================
--- trunk/src/event/editor/CHPRadioPanel.java	(revision 130)
+++ trunk/src/event/editor/CHPRadioPanel.java	(revision 140)
@@ -36,10 +36,11 @@
         event = (CHPRadioEvent) sei;
         audioText.setText(event.radioFile);
-        
+
         for (int i = 0; i < event.lines.size(); i++)
         {
             ((MyTableModel) dialogTable.getModel()).addRow(event.roles.get(i), event.lines.get(i));
         }
-        addDispatchButton.addActionListener(new ActionListener() {
+        addDispatchButton.addActionListener(new ActionListener()
+        {
 
             public void actionPerformed(ActionEvent e)
@@ -50,5 +51,6 @@
             }
         });
-        addFieldButton.addActionListener(new ActionListener() {
+        addFieldButton.addActionListener(new ActionListener()
+        {
 
             public void actionPerformed(ActionEvent e)
@@ -69,5 +71,5 @@
                     event.lines.set(e.getLastRow(), dialogTable.getModel().getValueAt(e.getLastRow(), 1).toString());
                 }
-                if(e.getType() == TableModelEvent.DELETE)
+                if (e.getType() == TableModelEvent.DELETE)
                 {
                     event.roles.remove(e.getLastRow());
@@ -76,5 +78,5 @@
             }
         });
-        
+
     }
 
@@ -83,9 +85,9 @@
         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
     }
-    
+
     @Override
     public boolean removeAssociatedEvent()
     {
-        ((I_ScriptEvent)event).removeThis();
+        ((I_ScriptEvent) event).removeThis();
         event = null;
         return true;
@@ -95,5 +97,8 @@
     public void uponClose()
     {
-        event.radioFile = audioText.getText();
+        if (event != null)
+        {
+            event.radioFile = audioText.getText();
+        }
     }
 
