NullPointerException on focusing a manager
Hi
As per the hierarchy manager extends Field. So, i have overriden the drawFocus and isFocusable methods. But whenever my isFocusable returns true for that manager, i get NullPointerException , even before its true value is set. i value is set to false, then it works fine. I'm using the CustomManager code at BB developer site and adding drawFocus to it |
Hi rock_win,
Is it possible to open your source code, so that we can point to your interest? Thanks, ARIF |
Heres the code, as soon as i set _focusable to true, i get the exception
Code:
import net.rim.device.api.ui.*; |
This is totally a guess but the manager class might not like being constructed with Manager.FOCUSABLE while returning false (from public boolean _focusable=false; , return _focusable) via your overriding isFocusable method.
|
Figured out the problem, it was the problem the fields are getting added in, at the time isFocusable is called the managers are empty
|
All times are GMT -5. The time now is 10:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.