Assertion failed: isValid() sharedpointer.h line 835

When I consider that the validity check is performed in TSharedPtr::operator->(), my guess would be that it is not the brush but the instance that is uninitialized.