Letractively / jcatapult

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

MVC doesn't handle invalid indexes and collections well #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, if you are attempting to get an expression and the object
contains null, the DefaultExpressionEvaluator doesn't perform any type
checking, but just returns null. Here's an example:

Expression:  'foo[0]'
Class:

public Bar {
  public String foo;
}

This should fail even though foo is null inside Bar. It should inspect the
type and validate that it is a collection or indexed and output an error.

The same holds true for the getAnnotation method. This will throw a very
bad exception in this case.

Original issue reported on code.google.com by bpontare...@gmail.com on 22 Jan 2009 at 4:42

GoogleCodeExporter commented 8 years ago

Original comment by bpontare...@gmail.com on 22 Jan 2009 at 4:44