Suggested change to this - to prevent potential crash!
String PluginDirectoryScanner::getNextPluginFileThatWillBeScanned() const
{
// Ensure index in range!
auto theIndex = nextIndex.get();
if (theIndex == 0) {
return "";
}
theIndex -= 1;
return format.getNameOfPluginFromIdentifier (filesOrIdentifiersToScan [theIndex]);
}
HTH! Pete