Skip to content

Commit

Permalink
ROO-2443: NPE in GwtOperationsImpl:133 when certain key sequence comp…
Browse files Browse the repository at this point in the history
…leted at Roo shell launch time - rethrow RuntimeExceptions rather than returning null (for addon developers)
  • Loading branch information
Alan Stewart committed May 24, 2011
1 parent 4f6bd29 commit 94b2074
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ public MetadataItem getInternal(String metadataIdentificationString, boolean evi
}
return result;
} catch (Exception e) {
// TODO: At the very least the MID should be removed from the active requests upon an exception being caught. There may be scope to wrap the exception and let it bubble up, but I am
// unsure on this point (JT - 18/05/11)
activeRequests.remove(metadataIdentificationString);
return null;
throw new IllegalStateException(e);
} finally {
// We use another try..finally block as we want to ensure exceptions don't prevent our metadataLogger.stopEvent()
try {
Expand Down

0 comments on commit 94b2074

Please sign in to comment.