tweezy23 / anyedittools

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

Potential ClassCastException in EditPropertyTester#getViewer() #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The result of page#getViewer() is casted to ITextViewer. I have a situation 
where it page a FileSearchPage, and the result is not an ITextViewer.

The method should test the result type to be fail safe here.

Attached screenshot shows the situation.

Original issue reported on code.google.com by karsten....@googlemail.com on 11 Mar 2011 at 1:26

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I've fixed it.

Original comment by iloveeclipse on 11 Mar 2011 at 2:46