No more NPE in getRuntime() when you cntr-c out of Queue

This commit is contained in:
Mark DePristo 2011-08-24 14:14:01 -04:00
parent 16d8360592
commit 4918519a58
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@ class JobRunInfo {
def getHostname = hostName
def getRuntimeInMs: Long = {
getDoneTime.getTime - getStartTime.getTime
if ( getDoneTime != null && getStartTime != null )
getDoneTime.getTime - getStartTime.getTime
else
-1
}
override def toString: String =