Skip to content

Commit 8445f27

Browse files
authored
Merge pull request #1463 from ligangty/master
FIX: NPE happened during getAffectedBy
2 parents 7db7c48 + 64a37b3 commit 8445f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/common/src/main/java/org/commonjava/indy/db/common/DefaultArtifactStoreQuery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public Set<Group> getGroupsAffectedBy( Collection<StoreKey> keys )
433433
{
434434
ArtifactStore store = dataManager.getArtifactStore( key );
435435

436-
if ( !processed.contains( store.getKey() ) && ( store instanceof Group ) )
436+
if ( ( store instanceof Group ) && !processed.contains( store.getKey() ) )
437437
{
438438
Group g = (Group) store;
439439
if ( g.getConstituents() != null && g.getConstituents().contains( next ) )

0 commit comments

Comments
 (0)