kwart / totp-me

TOTP authenticator for Java ME enabled devices. It's an implementation of the RFC 6238 - TOTP: Time-Based One-Time Password Algorithm.
Apache License 2.0
32 stars 12 forks source link

Unable to add a new profile #17

Closed metlos closed 11 years ago

metlos commented 11 years ago

I downloaded the 1.5 version binaries from sourceforge (to my phone, not the emulator) and I am unable to add more than 1 profile.

Upon first start, I create the first profile, which works OK. After that I am taken to the home screen (which shows "Menu" and "Exit" options at the bottom, unlike what is shown on the screenshots). When I select the "Profiles" option in the Menu, I'm taken to the profile list. The "Add profile" option (which actually just reads "Add profi") there doesn't work though. Clicking it does nothing.

Not sure if this is an issue of my phone or the app. I didn't try the most recent version in the emulator yet.

kwart commented 11 years ago

Lukas, thanks for the report.

metlos commented 11 years ago

LG KF310

kwart commented 11 years ago

OK, I see. It's failing also in LG emulator. The stacktrace:

TRACE:  , Exception caught in Display class 
java.lang.ArrayIndexOutOfBoundsException 
- java.util.Calendar.get(), bci=98 
- org.jboss.totp.TOTPMIDlet.commandAction(), bci=333 
- javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 
- com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 
- com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 
- com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 
- com.sun.midp.chameleon.CWindow.keyInput(), bci=38 
- javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 
- com.sun.midp.lcdui.DisplayEventListener.process(), bci=169 
- com.sun.midp.events.EventQueue.run(), bci=179 
- java.lang.Thread.run(), bci=11 

I'll check which Calendar fields are supported in MIDP-1.0 and try to fix it.

kwart commented 11 years ago

Fixed in 1.6