session client: fix throwing IllegalArgumentException if deserialization of uuid fails

(cherry picked from commit 267db643d6b9f2375eaa0d44fbd26f7cf2b97d73)
This commit is contained in:
Adam
2018-03-08 20:00:29 -05:00
parent bcab14bfe4
commit b2d11ce661

View File

@@ -56,7 +56,7 @@ public class SessionClient
InputStream in = body.byteStream();
return RuneLiteAPI.GSON.fromJson(new InputStreamReader(in), UUID.class);
}
catch (JsonParseException ex)
catch (JsonParseException | IllegalArgumentException ex) // UUID.fromString can throw IllegalArgumentException
{
throw new IOException(ex);
}