Skip to content

Commit

Permalink
fail early on null context
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Mar 14, 2012
1 parent 86a5b6f commit 2cc7e72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jruby/rack/AbstractRackDispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public abstract class AbstractRackDispatcher implements RackDispatcher {
protected final RackContext context;

public AbstractRackDispatcher(RackContext context) {
if (context == null) {
throw new IllegalArgumentException("null context");
}
this.context = context;
}

Expand Down

0 comments on commit 2cc7e72

Please sign in to comment.