Commit df5069a1 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

return empty map instead of null

parent 1d8b46a3
......@@ -15,6 +15,7 @@
package org.bonitasoft.connectors.twitter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
......@@ -118,10 +119,9 @@ public abstract class TwitterConnector implements Connector {
final Twitter twitter = tf.getInstance();
} catch (final Exception e) {
throw new ConnectorException(e.getMessage());
throw new ConnectorException(e);
return null;
return Collections.emptyMap();
protected abstract void executeTask(Twitter twitter) throws Exception;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment