File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lodash-plugin/src/main/java/com/github/underscore/lodash
string-plugin/src/main/java/com/github/underscore/string Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2468,7 +2468,7 @@ public Object fromJson() {
24682468
24692469 @ SuppressWarnings ("unchecked" )
24702470 private static Object getValue (final Object value ) {
2471- if (value instanceof Map ) {
2471+ if (value instanceof Map && (( Map < String , Object >) value ). entrySet (). iterator (). hasNext () ) {
24722472 final Map .Entry <String , Object > entry = ((Map <String , Object >) value ).entrySet ().iterator ().next ();
24732473 if (entry .getKey ().equals ("#text" ) || entry .getKey ().equals ("element" )) {
24742474 return entry .getValue ();
Original file line number Diff line number Diff line change @@ -1988,7 +1988,7 @@ public Object fromJson() {
19881988
19891989 @ SuppressWarnings ("unchecked" )
19901990 private static Object getValue (final Object value ) {
1991- if (value instanceof Map ) {
1991+ if (value instanceof Map && (( Map < String , Object >) value ). entrySet (). iterator (). hasNext () ) {
19921992 final Map .Entry <String , Object > entry = ((Map <String , Object >) value ).entrySet ().iterator ().next ();
19931993 if (entry .getKey ().equals ("#text" ) || entry .getKey ().equals ("element" )) {
19941994 return entry .getValue ();
You can’t perform that action at this time.
0 commit comments