Mercurial Hosting > junotu
changeset 18:60104bfcffff
Fixed Card::tagGetAs()
author | Fox |
---|---|
date | Sun, 10 Apr 2022 05:37:05 +0200 |
parents | e51c3c807650 |
children | c9961a1e1479 |
files | src/junotu/Card.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/junotu/Card.java Sun Apr 10 03:38:26 2022 +0200 +++ b/src/junotu/Card.java Sun Apr 10 05:37:05 2022 +0200 @@ -127,6 +127,11 @@ public <T> T tagGetAs( String tag ) { final Set<Object> values = tagValues( tag ); + + if( values == null ) { + return null; + } + Object current; while( ( current = values.iterator().next() ) != null ) { try {