Revision 7140
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
1191 | 1191 |
} catch (RuntimeException e) { |
1192 | 1192 |
ServiceFailure sf = new ServiceFailure("4872", |
1193 | 1193 |
"Runtime Exception: Couldn't determine if node is allowed: " + |
1194 |
e.getCause().getMessage());
|
|
1194 |
e.getMessage()); |
|
1195 | 1195 |
sf.initCause(e); |
1196 | 1196 |
throw sf; |
1197 | 1197 |
|
Also available in: Unified diff
just use the e.getMessage() as e.getCause() may be null (seeing NPE when testing via the MN IT tester)