purplecabbage/phonegap-plugins — Issue #53: NativeControls crashes when calling selectTabBarItem without String argument
Author: alexander-koerschgen
Created: 2011-12-29 00:57:55+00:00
State: open

Hey,

I just upgraded to Phonegap 1.3.0 (from 1.0.0) and encountered the following error: When you call the selectTabBarItem method with no argument (or with null argument), it throws an out of bounds error. I suspect this to happen in line 300 of NativeControls.m when objectAtIndex is called.

This is not a big deal, since it works when you call the method with an empty string ''. However, you might consider editing the description of the function in both the .m and the .js file, since it tells you to call the method with nil.

Best wishes
Alexander Körschgen