Skip to content

Commit

Permalink
Fix NullPointerException when trying to save attachments from the nod…
Browse files Browse the repository at this point in the history
…e display (resolves Issue #8)
  • Loading branch information
Jmcleodfoss committed Nov 1, 2020
1 parent 06e4dae commit 2c6e4d2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ String initialFilenameSuggestion()
/** {@inheritDoc} */
byte[] data()
{
attachment = null;
pc = null;
// attachment and pc were set in initialFilenameSuggestion, called before data is retrieved
try {
return attachment.data(pc);
} catch (CRCMismatchException e) {
Expand Down

0 comments on commit 2c6e4d2

Please sign in to comment.