Skip to content

Commit 3f8fa41

Browse files
committed
Handle AbstractOptions.append( null )
1 parent 2a3a973 commit 3f8fa41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scijava/optional/AbstractOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ protected T copyOrThis()
2323

2424
protected T append( final T additionalOptions )
2525
{
26+
if ( additionalOptions == null )
27+
return ( T ) this;
28+
2629
T concat = copyOrThis();
2730
additionalOptions.theOptions.forEach( concat.theOptions::put );
2831
return concat;

0 commit comments

Comments
 (0)