CCTextFieldTTF throw exception after return from keyboard with no characters

How to reproduce:
~~run TestDemo.apk
~~TextInputTest
~~click on
~~click on enter key on softkeyboard

Result:
java.lang.StringIndexOutOfBoundsException
at org.cocos2dx.lib.TextInputWraper.onEditorAction(Cocos2dxGLSurfaceView.java:84)
at android.widget.TextView.doKeyDown(TextView.java:4569)
at android.widget.TextView.onKeyDown(TextView.java:4470)
at android.view.KeyEvent.dispatch(KeyEvent.java:1489)
at android.view.View.dispatchKeyEvent(View.java:3902)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:811)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:811)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:811)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1780>
at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1152)
at android.app.Activity.dispatchKeyEvent(Activity.java:2205)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1747)
at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2716)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2154)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

Comments:
On iPhone (3GS 4.21) no problem.

Enviroment:
Cocos2D-x: cocos2d-1.0.0-x-0.9.0
device: HTC Sensation 2.3.3

Bug #671 create.
Thanks for your report, we will fix it in next version. (roadmap of current version is locked now)

Oh, #631 has resolved it.

Sorry, I have deleted #671. So it will apply in the current version.

Sorry for alredy resolved bug report.

I searched in issues, but only in opened not all (resolved).

I will improve for next time.

It doesn’t matter. Take it easy to report bug.