On 23 January 2014 09:29, Michael Lück <michael@lueckonline.net> wrote:
> I just tried to open a Testplan in 2.10 that worked fine in JMeter 2.9.
Does it also fail in JMeter 2.11?
If so, can you provide a simple test case as a Bugzilla attachment?
> The loading is interrupted by an NPE because
> org.apache.testbeans.gui.JSyntaxTextArea#setLanguage is called with null
> value.
>
> I figured out the the custom plugin (based on TestBean) was missing to call
>
> p.setValue(TEXT_LANGUAGE, "xml")
>
> after creating a property with TypeEditor.TextAreaEditor.
>
> I'd suppose to add a null check in the mentioned method and throw an
> IllegalArgumentException with a detailed error message, stating the the
> developer of the plugin needs to add a line like the above to it's BeanInfo
> class.
>
> I would have done it already but wanted to ask if throwing an Exception in
> that case is wanted if it's better to log a warning and take the default
> (like in the case that the key isn't found in the textarea.properties)
>
> Regards,
> Michael
>
|