Fix instances collector
Fixes two bugs in instances collector:
-
panic: nil pointer reference
whenCollect()
is called before the collector was fully initialized. -
Instances not being listed, and throwing instead an error, because of wrong
if
statement.
Edited by Tomasz Maczukin