mirror of
https://github.com/corda/corda.git
synced 2025-06-15 05:38:14 +00:00
CORDA-3396 fixed NPE in BlobInspector. Added verbose message in the case of error.
This commit is contained in:
@ -79,6 +79,11 @@ class BlobInspector : CordaCliWrapper("blob-inspector", "Convert AMQP serialised
|
||||
mapper.writeValue(out, deserialized)
|
||||
ExitCodes.SUCCESS
|
||||
} catch (e: Exception) {
|
||||
print("Unexpected exception: ${e.message}")
|
||||
if (verbose) {
|
||||
println()
|
||||
e.printStackTrace(System.out)
|
||||
}
|
||||
ExitCodes.FAILURE
|
||||
} finally {
|
||||
_contextSerializationEnv.set(null)
|
||||
|
Reference in New Issue
Block a user