[유치수] [NOBTS] bugfix NPE

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@1133 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2013-01-31 05:41:05 +00:00
parent 0ee3da97ad
commit eec4ed16fc
@@ -32,7 +32,7 @@ public class SpanAligner2 {
rootSpanId = -1L;
spanMap.put(-1L, span);
continue;
} else if (rootSpanId != -1 && span.getStartTime() < rootSpanStartTime) {
} else if ((rootSpanId == null || rootSpanId != -1) && span.getStartTime() < rootSpanStartTime) {
rootSpanId = (span.getParentSpanId() == -1) ? -1L : span.getSpanId();
rootSpanStartTime = span.getStartTime();
}