Skip to content
Permalink
Browse files
Avoid calling RemoteException.initCause()
... as this will always throw IllegalStateException.
Instead set its public 'detail' field to the desired value.
  • Loading branch information
ngmr committed Mar 10, 2015
1 parent 52757bd commit 2dbc516ee48ce77d8b526a506e1ccce79e39f0d7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -184,7 +184,7 @@ private RemoteException createRemoteException(SystemException sysEx, String s) {
} catch (SystemException catchAll) {
result = new RemoteException(s);
}
result.initCause(sysEx);
result.detail = sysEx;
return result;
}

0 comments on commit 2dbc516

Please sign in to comment.