Merge remote-tracking branch 'XTUPLE/4_5_x' into 23853
[xtuple] / lib / enyo-x / source / widgets / file_input.js
index b3ac65c..d785be8 100644 (file)
@@ -64,6 +64,10 @@ regexp:true, undef:true, trailing:true, white:true */
         filename = inEvent.value,
         reader;
 
+      if (!file) {
+        return;
+      }
+
       if (filename.indexOf("C:\\fakepath\\") === 0) {
         // some browsers obnoxiously give you a fake path, but the only thing
         // we want is the filename really.