Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
abashev committed Jan 5, 2020
1 parent 18c6093 commit 829e1e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/github/vfss3/S3FileObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.TreeSet;
Expand Down Expand Up @@ -992,9 +993,9 @@ protected boolean sameFileSystem(FileObject toFile) {
final S3FileName destFile = ((S3FileObject) toFile).getName();

return (
getName().getEndpoint().equals(destFile.getEndpoint()) &&
getName().getAccessKey().equals(destFile.getAccessKey()) &&
getName().getSecretKey().equals(destFile.getSecretKey())
Objects.equals(getName().getEndpoint(), destFile.getEndpoint()) &&
Objects.equals(getName().getAccessKey(), destFile.getAccessKey()) &&
Objects.equals(getName().getSecretKey(), destFile.getSecretKey())
);
}

Expand Down

0 comments on commit 829e1e3

Please sign in to comment.