Fixed Resource

master
Harald Wolff 2018-01-12 20:53:19 +01:00
parent 48e0d2dd6e
commit 0c62842929
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ public class Ressource {
}
public static byte[] load(InputStream in) throws IOException{
if (in == null){
return new byte[0];
}
byte[] buffer = new byte[in.available()];
in.read(buffer);
return buffer;