import java.util.stream.Stream;
import lombok.extern.slf4j.Slf4j;
+import org.bson.BSONException;
import org.bson.json.JsonParseException;
import org.onap.pnfsimulator.db.Storage;
import org.onap.pnfsimulator.template.Template;
processor.processEvent(templatePath, storage);
} catch (IOException e) {
log.error("Error during processing DB record for template.", e);
- } catch (JsonParseException e) {
+ } catch (BSONException | JsonParseException e) {
log.error("Invalid JSON format provided for template.", e);
}
});
**Known Issues**
- N/A
+ - https://jira.onap.org/browse/INT-1533
+ File watcher thread crashes when empty file is added to template folder
**Security Notes**
**Bug Fixes**
- - No new fixes were implemented for this release
+ - https://jira.onap.org/browse/INT-1533
+ File watcher no longer crashes after adding empty file to template folder. In stead it logs information about wrong template format
**Known Issues**