Skip to content

Commit

Permalink
Bug fix. Don't print 'null' when dumped-date is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius committed Nov 18, 2022
1 parent 9faaa52 commit 1ae1a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## v2.1.0
* Bug fix: Display empty string if dumped-date is not set (instead of printing `null`)
### Code refactoring
* Simplified factory pattern
* Replacing abstract class with interface
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/se/anosh/spctag/TagReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void go(final CommandLine cmd) {
System.out.println("Name of dumper: " + myFile.getNameOfDumper());
System.out.println("Comments: " + myFile.getComments());

System.out.println("Date SPC was dumped: " + myFile.getDateDumpWasCreated());
System.out.println("Date SPC was dumped: " + myFile.dateDumpWasCreated());
System.out.println("Emulator used to dump SPC: " + myFile.getEmulatorUsedToCreateDump().getName());

if (cmd.hasOption(VERBOSE) || cmd.hasOption(XID6)) {
Expand Down

0 comments on commit 1ae1a7f

Please sign in to comment.