salk31 / RedQueryBuilder

SQL Query Builder UI JavaScript component
http://redquerybuilder.appspot.com/
Eclipse Public License 1.0
96 stars 22 forks source link

Typing field name that does not exist throws exception (tardis) #33

Closed prospectoria closed 9 years ago

prospectoria commented 9 years ago

Using the Tardis branch, in the field selection box. If typing in a field name and it does not exist in the list of fields the following error is thrown in the console:

To reproduce, type in zzzz, or some other field name that does not exist in the meta struct.

Wed Oct 22 15:33:25 GMT-700 2014 com.google.gwt.logging.client.LogConfiguration SEVERE: Exception caught: Index: 2, Size: 0 com.google.gwt.event.shared.UmbrellaException: Exception caught: Index: 2, Size: 0 at Unknown.Exception_1(0.js@22) at Unknown.RuntimeException_2(0.js@15) at Unknown.UmbrellaException_1(0.js@22) at Unknown.UmbrellaException_2(0.js@23) at Unknown.$fireEvent(0.js@13) at Unknown.$fireEvent_0(0.js@57) at Unknown.fireNativeEvent(0.js@42) at Unknown.$onBrowserEvent(0.js@52) at Unknown.onBrowserEvent_3(0.js@21) at Unknown.onBrowserEvent_0(0.js@17) at Unknown.dispatchEvent_0(0.js@12) at Unknown.eval(0.js@43) at Unknown.apply(0.js@21) at Unknown.entry0(0.js@16) at Unknown.eval(0.js@14) Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0 at Unknown.Exception_0(0.js@22) at Unknown.RuntimeException_1(0.js@15) at Unknown.IndexOutOfBoundsException_1(0.js@22) at Unknown.indexOutOfBounds(0.js@9) at Unknown.checkIndex(0.js@35) at Unknown.$requestSuggestions_0(0.js@38) at Unknown.requestSuggestions_0(0.js@3) at Unknown.$refreshSuggestions(0.js@206) at Unknown.onKeyUp_0(0.js@27) at Unknown.dispatch_5(0.js@40) at Unknown.$doFire(0.js@17) at Unknown.$fireEvent(0.js@24) at Unknown.$fireEvent_0(0.js@57) at Unknown.fireNativeEvent(0.js@42) at Unknown.$onBrowserEvent(0.js@52) at Unknown.onBrowserEvent_3(0.js@21) at Unknown.onBrowserEvent_0(0.js@17) at Unknown.dispatchEvent_0(0.js@12) at Unknown.eval(0.js@43) at Unknown.apply(0.js@21) at Unknown.entry0(0.js@16) at Unknown.eval(0.js@14)

salk31 commented 9 years ago

Sorry! This seems to have passed me by. Is it still a problem?

prospectoria commented 9 years ago

Yup this one is still an issue. It's not a show stopper as everything continues to work, it just spits out messages to the console when text is types and there's no match in the field selection.

salk31 commented 9 years ago

Hmmm. Sorry about that. I'm not getting emails any more.

salk31 commented 9 years ago

I'm assuming you don't want/need a particular message when no matches so I'll just try and cope with this case without an error.