google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Many tests not checking for nullity before accessing elements #636

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As per Issue 634, and as per my exploration of the other tests, I've discovered 
that many of the tests (at least in the compiler tests) do not check for a lack 
of elements before attempting to access them. 

For example,

{{{
TraceDirective traceDirective1 = clazz.getTraceDirective(0);
}}}

Here, there is no check to see if there are TraceDirectives to get before 
attempting to access them. This results in an "error" test as opposed to a 
"failed" test.

Original issue reported on code.google.com by alexwith...@gmail.com on 21 Sep 2014 at 1:41

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 21 Sep 2014 at 1:51