Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85965eb

Browse filesBrowse files
DickSmithvakrilov
authored and
vakrilov
committed
fix: error ... executing doInBackground() #138 (#139)
As requested in ST 1341351, this PR replaces the throw if `files` is null.
1 parent ebcda8e commit 85965eb
Copy full SHA for 85965eb

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎android/widgets/src/main/java/org/nativescript/widgets/Image/DiskLruCache.java

Copy file name to clipboardExpand all lines: android/widgets/src/main/java/org/nativescript/widgets/Image/DiskLruCache.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public static void closeQuietly(Closeable closeable) {
254254
public static void deleteContents(File dir) throws IOException {
255255
File[] files = dir.listFiles();
256256
if (files == null) {
257-
throw new IllegalArgumentException("not a directory: " + dir);
257+
return;
258258
}
259259
for (File file : files) {
260260
if (file.isDirectory()) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.