Cleaned up Edit menu
[pithos] / web_client / src / gr / grnet / pithos / web / client / commands / ToTrashCommand.java
index 9050e3d..32946d9 100644 (file)
@@ -77,7 +77,8 @@ public class ToTrashCommand implements Command{
 
        @Override
        public void execute() {
-               containerPanel.hide();
+        if (containerPanel != null)
+               containerPanel.hide();
         if (resource instanceof List) {
             Iterator<File> iter = ((List<File>) resource).iterator();
             trashFiles(iter, new Command() {