Skip to content

Commit

Permalink
Merge pull request #147 from maarzt/fix-no-features-installed
Browse files Browse the repository at this point in the history
Tiny fix, NullPointerException in FeatureComputationPanel/Model
  • Loading branch information
tinevez authored Apr 1, 2022
2 parents 2f1572c + 38e7e59 commit f4d5267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void setVisible( final FeatureSpec< ?, ? > spec, final boolean visible )
public Collection< FeatureSpec< ?, ? > > getFeatureSpecs( final Class< ? > target )
{
final Collection< FeatureSpec< ?, ? > > fs = featureSpecsTargetMap.get( target );
return null == fs ? null : Collections.unmodifiableCollection( fs );
return null == fs ? Collections.emptyList() : Collections.unmodifiableCollection( fs );
}

public FeatureSpec< ?, ? > getFeatureSpec( final String featureKey )
Expand Down

0 comments on commit f4d5267

Please sign in to comment.