VST problem

My plugin that can load other plugins crashed here in VSTPluginFormat:

case audioMasterGetProductString: JUCEApplication::getInstance() ->getApplicationName().copyToBuffer ((char*) ptr, jmin (kVstMaxVendorStrLen, kVstMaxProductStrLen) - 1); break;

Is that because there is not JUCEApplication instance since it’s a plugin?
Maybe it would be better to zero check then?

Sounds like something I fixed a very long time ago…