Skip to content

Commit

Permalink
Merge pull request Twitter4J#199 from miketempleman/master
Browse files Browse the repository at this point in the history
TFJ-875 Protect from npe when invoking shutdown on site stream
  • Loading branch information
yusuke committed Jun 2, 2015
2 parents c919c88 + 0338781 commit fb51685
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class StreamController {
}

void setControlURI(String controlURI) {
this.controlURI = controlURI.replace("/1.1//1.1/", "/1.1/");
this.controlURI = (controlURI!=null) ?controlURI.replace("/1.1//1.1/", "/1.1/") : null;
synchronized (lock) {
lock.notifyAll();
}
Expand Down

0 comments on commit fb51685

Please sign in to comment.