Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-connector-twitter
Commits
df5069a1
Commit
df5069a1
authored
Sep 03, 2013
by
Romain Bioteau
Browse files
return empty map instead of null
parent
1d8b46a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
bonita-connector-twitter-common/src/main/java/org/bonitasoft/connectors/twitter/TwitterConnector.java
View file @
df5069a1
...
...
@@ -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
();
executeTask
(
twitter
);
}
catch
(
final
Exception
e
)
{
System
.
out
.
println
(
e
.
getMessage
());
throw
new
ConnectorException
(
e
.
getMessage
());
throw
new
ConnectorException
(
e
);
}
return
null
;
return
Collections
.
emptyMap
()
;
}
protected
abstract
void
executeTask
(
Twitter
twitter
)
throws
Exception
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment