Ale46 / Mega-Java

Java library for the mega.co.nz API
44 stars 20 forks source link

NullPointerException on Linux #10

Open BullyWiiPlaza opened 7 years ago

BullyWiiPlaza commented 7 years ago

The base64_url_decode_byte() method does not behave identical on Windows and Linux. On Windows, the amount of separator characters (variable sepCnt) is 0 while for Linux it is 1 for the same input.

Forcing the sepCnt to 0 causes a further exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 44

I know that this repository is deprecated but I just wanted to let you know about this inconsistency. Maybe you know a fix.