Fixed null-pointer dereference in smp plugin.