first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / module / ModuleComment.java
index 1903721..169e418 100755 (executable)
@@ -31,14 +31,18 @@ public class ModuleComment extends AbstractModule
   // Contructor
   public ModuleComment(StorageObject theStorage)
   {
-    //if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Comment.Logfile"));
-    //if (theStorage == null) theLog.printWarning("StorageObject was null!");
+    if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Comment.Logfile"));
+    if (theStorage == null) theLog.printWarning("StorageObject was null!");
     this.theStorage = theStorage;
   }
 
   // Methoden
-  public SimpleList getCommentAsSimpleList() {
-    return ((DatabaseComment)theStorage).getPopupData();
+  public SimpleList getCommentAsSimpleList() throws ModuleException {
+    try {
+      return ((DatabaseComment)theStorage).getPopupData();
+    } catch (StorageObjectException e) {
+      throw new ModuleException(e.toString());
+    }
   }
   
   /**