From 2e50422a01739bfd55d745d78b8ef021336f5b71 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 14 Apr 2016 01:10:05 -0400 Subject: [PATCH] Don't try to load gpx if drag and drop fileList empty --- js/id/svg/gpx.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/svg/gpx.js b/js/id/svg/gpx.js index 44625ae87..d79a4082e 100644 --- a/js/id/svg/gpx.js +++ b/js/id/svg/gpx.js @@ -128,6 +128,7 @@ iD.svg.Gpx = function(projection, context, dispatch) { }; drawGpx.files = function(fileList) { + if (!fileList.length) return this; var f = fileList[0], reader = new FileReader();