Project

General

Profile

Actions

Bug #1373

closed

Delete function causes NPE and doesn't work

Added by Matt Jones over 20 years ago. Updated over 20 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
morpho - general
Target version:
Start date:
03/19/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1373

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)

Actions

Also available in: Atom PDF