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
This commit is contained in:
@@ -70,6 +70,9 @@ public abstract class Interval
|
|||||||
*/
|
*/
|
||||||
public Interval (RunQueue runQueue)
|
public Interval (RunQueue runQueue)
|
||||||
{
|
{
|
||||||
|
if (runQueue == null) {
|
||||||
|
throw new IllegalArgumentException("Supplied RunQueue must be non-null");
|
||||||
|
}
|
||||||
_runQueue = runQueue;
|
_runQueue = runQueue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user