Changeset 1550


Ignore:
Timestamp:
04/29/21 13:14:21 (3 years ago)
Author:
davidb
Message:

Error check added in for when a link to follow might not exists. The bug was discovered when running Expeditee reading/writing frame through Google Drive for Desktop (because Google Drive and/or in combination with Windows) had renamed a file 9.exp to 9(1).exp -- but it was still linked to 9.exp back in the Web GD interface. In addressing the issue it was also seen that simply the act of have a frame where a link has been incorrectly expressed could also lead to the same Null pointer exception being thrown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/DefaultTreeWriter.java

    r1529 r1550  
    201201                                if (t.equals(titleItem)) { continue; }
    202202                                if (t.hasLink()) {
    203                                         Frame toWalk = FrameIO.LoadFrame(t.getAbsoluteLink());
     203                                    Frame toWalk = FrameIO.LoadFrame(t.getAbsoluteLink());
     204                                    if (toWalk != null) {
    204205                                        outputTreeFlowWalkerStyle(toWalk);
    205                                         continue;
     206                                    }
     207                                    else {
     208                                        String message = "OutputTreeflowWalker Unable to follow link: " + t.getAbsoluteLink();
     209                                        MessageBay.errorMessage(message);
     210                                    }
     211                                    continue;                               
    206212                                }
    207213                                try {
Note: See TracChangeset for help on using the changeset viewer.