NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Some weird behavior when morpho deletes a network data package with data file #1018

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 5868, https://projects.ecoinformatics.org/ecoinfo/issues/5868 Original Date: 2013-02-14 Original Assignee: Jing Tao


Here are the steps to produce the issue:

  1. Use the new data package wizard and entity wizard to generate a data package.
  2. Save it to network.
  3. Go to File|Delete to delete the data package.
  4. Morpho shows up a warning panel without any information.
  5. The morpho frame does show up (It should disappear).
  6. Morpho search on the network can't find the data package. It means that the data package does be removed.

When morpho delete a data package without data object, it works.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-15T18:30:22Z


The problem is there is no null check for the id. If an id is null, the anotherId.equal(id) will have NullPointerException.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:31:57Z


Original Bugzilla ID was 5868