sintaxi / dbox

NodeJS SDK for Dropbox API (THIS LIBRARY IS OBSOLETE!!)
514 stars 91 forks source link

Don't try reading length of undefined #60

Open felixvisee opened 11 years ago

felixvisee commented 11 years ago

When trying to put "nothing", really just null, dbox tries to read null.length, which blows things up. Using an empty Buffer fails too, because request expects everything that is "something" to have a length greater than zero. But, request supports both an empty string and null, so should dbox.