Fix NullPointerException when checking if storage exists
This commit is contained in:
parent
39722a5563
commit
1822d21676
2 changed files with 2 additions and 2 deletions
|
|
@ -285,7 +285,7 @@ public class StoredFileHelper implements Serializable {
|
|||
}
|
||||
|
||||
public boolean existsAsFile() {
|
||||
if (source == null) {
|
||||
if (source == null || (docFile == null && ioFile == null)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue