Skip to content

Commit

Permalink
[TIMOB-23459] Android: Adding a warning when null dir is passed to ge…
Browse files Browse the repository at this point in the history
…tFile()
  • Loading branch information
ashcoding committed Jun 22, 2016
1 parent ec51a18 commit e50aed7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public FileProxy getFile(KrollInvocation invocation, Object[] parts)
{
//If directory doesn't exist, return
if (parts[0] == null) {
return null;
Log.w(TAG, "A null directory was passed in getFile(). Returning null.");
return null;
}
String[] sparts = TiConvert.toStringArray(parts);
return new FileProxy(invocation.getSourceUrl(), sparts);
Expand Down

0 comments on commit e50aed7

Please sign in to comment.