Bug #1373
closedDelete function causes NPE and doesn't work
0%
Description
I'm trying to use the "Delete..." function from a recent checkout (Mar19, 2004
around 2:15pm PST) of Morpho. When I select a row in a resultset and select
File|Delete..., it asks me if I want to delete the network copy. I say yes, and
it proceeds to try, but generates a Null Pointer Exception and the package is
not deleted. The packages I have tried to delete include:
test.2003224115028.1
test.2003224112053.1
foombj.103.1
In addition, if I open the package and select File|Delete... from within the
opened package window, nothing happens whatsoever. If this function isn't
available here, it should be disabled in the menu.
Here is the exception:
java.lang.NullPointerException
at
edu.ucsb.nceas.morpho.datapackage.AbstractDataPackage.delete(AbstractDataPackage.java:2478)
at
edu.ucsb.nceas.morpho.datapackage.DataPackagePlugin.delete(DataPackagePlugin.java:864)
at
edu.ucsb.nceas.morpho.query.DeleteCommand$1.construct(DeleteCommand.java:258)
at edu.ucsb.nceas.morpho.framework.SwingWorker$2.run(SwingWorker.java:140)
at java.lang.Thread.run(Thread.java:534)