Skip to content

Commit

Permalink
Fixed exception when recents list contains a bad path
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Nov 26, 2024
1 parent 6aee56b commit d131ca9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Project/Modules/Beacon/ProjectURL.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,13 @@ Protected Class ProjectURL
// Not suitable for restoring a file, just a visual reference

If Self.mType = Self.TypeLocal Then
Var File As FolderItem = Self.File
If (File Is Nil) = False Then
Return File.NativePath
End If
Try
Var File As FolderItem = Self.File
If (File Is Nil) = False Then
Return File.NativePath
End If
Catch Err As RuntimeException
End Try
Return "Invalid Path"
Else
Return Self.mPath
Expand Down

0 comments on commit d131ca9

Please sign in to comment.