Pita/etherpad-lite — Issue #338: Empty upload crashes server
Author: 0ip
Created: 2012-01-17 16:36:20+00:00
State: open

Empty uploads (e.g. if you enable the Import Button manually) leads to the following error message:
(might be similar to #299)

```
[2012-01-17 16:28:38.078] [ERROR] console - TypeError: Cannot call method 'toLowerCase' of undefined
at /home/ether/etherpad-lite/node/handler/ImportHandler.js:85:46
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:494:21
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:194:13
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:118:13
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:129:25
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:196:17
at /home/ether/etherpad-lite/node_modules/async/lib/async.js:499:34
at /home/ether/etherpad-lite/node/handler/ImportHandler.js:76:11
at IncomingForm. (/home/ether/etherpad-lite/node_modules/formidable/lib/incoming_form.js:117:9)
at IncomingForm.emit (events.js:64:17)
[2012-01-17 16:28:38.078] [INFO] console - graceful shutdown...
[2012-01-17 16:28:38.156] [INFO] ueberDB - Flushed 1 values
[2012-01-17 16:28:38.356] [INFO] console - db sucessfully closed.
RESTART
```