session client: fix throwing IllegalArgumentException if deserialization of uuid fails
(cherry picked from commit 267db643d6b9f2375eaa0d44fbd26f7cf2b97d73)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user