From fe88ce14a637d412d3cd4b6a2082e02ac41c1185 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 30 Mar 2003 02:19:56 +0000 Subject: [PATCH] Checkus sanitorium. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2349 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/util/LineSegmentPath.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/util/LineSegmentPath.java b/src/java/com/threerings/media/util/LineSegmentPath.java index bb844fd92..cacfa0136 100644 --- a/src/java/com/threerings/media/util/LineSegmentPath.java +++ b/src/java/com/threerings/media/util/LineSegmentPath.java @@ -1,5 +1,5 @@ // -// $Id: LineSegmentPath.java,v 1.28 2003/02/12 05:27:57 mdb Exp $ +// $Id: LineSegmentPath.java,v 1.29 2003/03/30 02:19:56 mdb Exp $ package com.threerings.media.util; @@ -251,6 +251,11 @@ public class LineSegmentPath protected boolean headToNextNode ( Pathable pable, long startstamp, long now) { + if (_niter == null) { + throw new IllegalStateException( + "headToNextNode() called before init()"); + } + // check to see if we've completed our path if (!_niter.hasNext()) { // move the pathable to the location of our last destination