Skip to content

Commit

Permalink
NP check
Browse files Browse the repository at this point in the history
  • Loading branch information
parg committed Nov 25, 2024
1 parent 3942260 commit 0a47fec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions uis/src/com/biglybt/ui/swt/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7144,7 +7144,10 @@ public void handleEvent(Event e) {
String path )
{
try{
path = FileUtil.getCanonicalPathWithTimeout( FileUtil.newFile( path ), 20*1000 );
if ( path != null ){

path = FileUtil.getCanonicalPathWithTimeout( FileUtil.newFile( path ), 20*1000 );
}

dialog.setFilterPath( path );

Expand All @@ -7160,7 +7163,10 @@ public void handleEvent(Event e) {
String path )
{
try{
path = FileUtil.getCanonicalPathWithTimeout( FileUtil.newFile( path ), 20*1000 );
if ( path != null ){

path = FileUtil.getCanonicalPathWithTimeout( FileUtil.newFile( path ), 20*1000 );
}

dialog.setFilterPath( path );

Expand Down

0 comments on commit 0a47fec

Please sign in to comment.