Index: trunk/src/event/editor/AudioPanel.java
===================================================================
--- trunk/src/event/editor/AudioPanel.java	(revision 130)
+++ trunk/src/event/editor/AudioPanel.java	(revision 140)
@@ -50,12 +50,15 @@
     public void uponClose()
     {
-        event.audioPath = audioFileText.getText();
-        try
+        if (event != null)
         {
-            event.audioLength = Integer.parseInt(audioLengthText.getText());
-        }
-        catch (Exception ex)
-        {
+            event.audioPath = audioFileText.getText();
+            try
+            {
+                event.audioLength = Integer.parseInt(audioLengthText.getText());
+            }
+            catch (Exception ex)
+            {
 
+            }
         }
     }
