From da5ac674e4005095582d37462655b52b147d0768 Mon Sep 17 00:00:00 2001 From: samskivert Date: Fri, 13 Feb 2009 18:17:01 +0000 Subject: [PATCH] This may break things, but accidentally passing a null runqueue that you think is not null results in extremely nefarious race condition bugs that are best nipped in the bud. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2529 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/Interval.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/com/samskivert/util/Interval.java b/src/java/com/samskivert/util/Interval.java index 38731383..cdff5013 100644 --- a/src/java/com/samskivert/util/Interval.java +++ b/src/java/com/samskivert/util/Interval.java @@ -70,6 +70,9 @@ public abstract class Interval */ public Interval (RunQueue runQueue) { + if (runQueue == null) { + throw new IllegalArgumentException("Supplied RunQueue must be non-null"); + } _runQueue = runQueue; }