Ticket #1603 (closed defect: fixed)
Opened 2012-12-11T15:21:42-06:00
Last modified 2013-05-31T16:04:54-05:00
Updater does not support reinstating previously obsolete files
Reported by: | curtis | Owned by: | dscho |
---|---|---|---|
Priority: | critical | Milestone: |
|
Component: | Updater | Version: | |
Severity: | fatal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1901 |
Description
Attempting to reinstate (i.e., upload) a JAR that was previously marked as obsolete results in an exception:
java.lang.NullPointerException at imagej.updater.core.FileObject.setAction(FileObject.java:426) at imagej.updater.gui.FileTable.setFileAction(FileTable.java:380) at imagej.updater.gui.FileTable$3.actionPerformed(FileTable.java:221) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
The immediate issue is that current is null, so calling current.filename = ... does not work. But just wrapping this call in an if (current != null) test is insufficient to fully address this issue. The status label reports "upload: 1 (-1B)" and when clicking the "Upload" button there is an error dialog: "Obsolete file jars/scifio-devel-4.5-SNAPSHOT.jarhas dependencies: jars/slf4j-api.jar!" So it seems more care is needed to fully address this limitation.