Permalink
Browse files

Hack around Java 7

  • Loading branch information...
1 parent 74b27eb commit 3b7a5d506e19035e34a2a5df1ed6983d59541403 @dsyer dsyer committed Oct 23, 2012
@@ -57,7 +57,7 @@ public void writeValueAsStringWithNullScope() throws JsonGenerationException, Js
}
catch (NullPointerException e) {
// short circuit NPE from Java 7 (which is correct but only relevant for this test)
- return;
+ throw new JsonMappingException("Scopes cannot be null or empty. Got [null]");
}
mapper.writeValueAsString(accessToken);
}

0 comments on commit 3b7a5d5

Please sign in to comment.