Skip to content

Commit

Permalink
fixed one more sonar-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timbo2k committed Mar 11, 2019
1 parent de8877f commit c95f302
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ Licensed to the Apache Software Foundation (ASF) under one
import org.apache.commons.lang3.Validate;
import org.apache.plc4x.java.scraper.config.ScraperConfiguration;
import org.apache.plc4x.java.scraper.exception.ScraperException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.util.Map;

public class Plc4xSchemaFactory implements SchemaFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(Plc4xSchemaFactory.class);

@Override
public Schema create(SchemaPlus parentSchema, String name, Map<String, Object> operand) {
Expand Down Expand Up @@ -56,6 +59,7 @@ public Schema create(SchemaPlus parentSchema, String name, Map<String, Object> o
try {
return new Plc4xSchema(configuration, parsedLimit);
} catch (ScraperException e) {
LOGGER.warn("Could not evaluate Plc4xSchema",e);
//ToDo Exception, but interface does not accept ... null is fishy
return null;
}
Expand Down

0 comments on commit c95f302

Please sign in to comment.