Skip to content

Commit

Permalink
fix cast failure - NE-255 MaxP computation crashes with Null pointer …
Browse files Browse the repository at this point in the history
…exception
  • Loading branch information
derrickoswald committed Nov 22, 2017
1 parent 9cb9f4e commit eef9c64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GridLAB-D/src/main/scala/ch/ninecode/gl/Line.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ class Line (one_phase: Boolean) extends Serializable
}

// is this an ACLineSegment
// ToDo: this currently only looks at the first element -- what about combinations?
def isACLineSegment (iter: Iterable[GLMEdge]): Boolean =
{
iter.head.el.getClass.getName.endsWith ("ACLineSegment")
iter.forall (_.el.getClass.getName.endsWith ("ACLineSegment"))
}

// get the configuration name (of the parallel lines)
Expand Down

0 comments on commit eef9c64

Please sign in to comment.