rju / architecture-evaluation-tool

Hypergraph static code analysis based on metrics defined by Edward B. Allen (2007); Measuring size, complexity, and coupling of hypergraph abstractions of software: An information-theory approach
5 stars 5 forks source link

fix crashes on hypergraphs with only one module and module names withtout dots #6

Closed MishaStrittmatter closed 7 years ago

MishaStrittmatter commented 7 years ago

TransformationHyperedgesOnlyGraph.xtend, TransformationHypergraphSize.xtend: Please verify the return value of the work estimate. Without preventing this case (no nodes), the calculation triggers a nullpointer, as reduce returns null on empty input.