Skip to content

Commit

Permalink
Let the DefaultObjTagMap return null as tag, if the given object was …
Browse files Browse the repository at this point in the history
…null
  • Loading branch information
stefanhahmann committed Dec 5, 2024
1 parent 70516db commit a60649b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/mastodon/model/tag/DefaultObjTagMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public void remove( final O object )
@Override
public T get( final O object )
{
if ( object == null )
return null;
final LabelSet< O, Integer > ref = idLabelSets.createRef();
try
{
Expand Down

0 comments on commit a60649b

Please sign in to comment.