Skip to content

Commit

Permalink
Fix FORGE-1735 : List of commands sometimes shows up Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Apr 4, 2014
1 parent cb65840 commit 54c0333
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public <T> Set<ExportedInstance<T>> getExportedInstances(final Class<T> clazz)

Set<ExportedInstance<T>> result = (Set) instancesCache.get(clazz.getName());

if (result == null)
if (result == null || result.isEmpty())
{
result = new HashSet<>();
for (int i = 0; i < serviceTypes.length; i++)
Expand Down

0 comments on commit 54c0333

Please sign in to comment.