what the? (ChoiceField) .getChoiceCached (int) online: 898 NullPointerException

Why I get this error?   (ChoiceField) .getChoiceCached (int) online: 898 NullPointerException

The ChoiceFeild object is not null.

JDE 5.0, 1.6.latest, Windows XP pro 32-bit jdk 1.3.0 eclipse plugin

The exception gives no message.

Just found the bug, here's the code.

Sort = new InData [X];       Suppose X 4 >
Type [0] =...

sort [1] =...

Sort [2] =...

Sort [3] =...

That is the problem - the sorting matrix is defined over a length of X but is filled less of X items

sortChoice = new TransparentObjectChoiceField ("", sort, 0, Field.FIELD_VCENTER, orig) {}
{} public void paint (Graphics graphics)
graphics.setColor (menuTextColor);
Super.Paint (Graphics);
}
};

It was hard to find because the exception was thrown only when the screen with the sortChoice object was pushed and then of course there were several of these objects on the screen so it is difficult to see who wants to go.

Thank you.

Tags: BlackBerry Developers

Similar Questions

  • When I used another key to activate the windows, what the key embedded on the motherboard.

    I bought a desktop lenovo Lenovo online - usa around 15/02/2015. the machine came with windows 7 pro. installed through windows downgrade rights 8 pro.

    but perhaps, I do not open/use the machine until 30/03/2015. After that, I have updated the system by installing updates provided/offered by windows updates.

    around 04/03/2015, when I open the computer properties, down to the title of the windows activation, there was this message "remaning 2 days to activate windows.» Activate now»

    When I click on activate now. Another dialogue box opens, indicating that the product key entered by me is not valid.

    I called mirosoft support, but perhaps, they refused to help me because I don't have the product key. (as long as no key is provided to me by lenovo, but only 8 pro windows recovery media.)

    I called lenovo support, but perhaps they also did not help me, according to them, it was a software problem, that only microsoft could solve.

    now, I had another death system (samsung) with windows 7 pro, so I used this product key to activate my windows on lenovo.

    My quiries are:

    1. what happens if God for bid, I want to restore my system to its factory state using the recovery partition or recovery media created by me, using backup and restore of lenovo.

    1. What is the status of my windows?

    1 b. Will he ask again the activation key?

    2. as I have downgrade rights to windows 8 pro, it is said that the product key is built-in on the motherboard. now when I used another key to activate the windows, what the key embedded on the motherboard.

    3. What is the best possible solution to this question, while I keep the original oem windows?

    is not - and never has been - responsibility of MS to pre-installed Windows help, a large part of the price of Windows is the support costs. Manufacturer have always had the responsibility to provide software support for the warranty period. Most interprets this as giving instructions on how to use the recovery media :(

    Yes, by using the recovery media should give your system its true status.  It will delete all data and programs, so go back to external media first!

  • I recently got this blue screen and I don't know what the problem is.

    * Original title: blue screen problem

    Hello, I recently got this blue screen and I don't know what the problem is.

    I use a # model Sony Vaio VGN - FW510F & my graphics card is ATI Mobility Radeon HD 4650.

    Signature of the problem:
    Problem event name: BlueScreen
    OS version: 6.1.7601.2.1.0.768.3
    Locale ID: 1033

    The blue screen mentioned this error: 0x000000EA

    More information about the problem:
    BCCode: 100000ea
    BCP1: FFFFFA80041B8170
    BCP2: 0000000000000000
    BCP3: 0000000000000000
    BCP4: 0000000000000000
    OS version: 6_1_7601
    Service Pack: 1_0
    Product: 768_1

    Files helping to describe the problem:
    C:\Windows\Minidump\020615-46550-01.dmp
    C:\Users\Andy\AppData\Local\Temp\WER-92976-0.SysData.XML

    Read our privacy statement online:
    Privacy statement for Windows 7 - Microsoft Windows

    If the online privacy statement is not available, please read our offline privacy statement:
    C:\Windows\system32\en-US\erofflps.txt

    Abui91

    These were related to the 5 year old video player.  I remove the current driver and install the latest driver available.

  • What the devil? How can I change the color of a single border?

    public static Border createSimpleBorder(XYEdges edges,
                                            XYEdges colors,
                                            int style)
    

    How can I change the color of a single border and why in the world is the setting of colors, a type of XYEdges?

    What the devil? How is it used? I threw in random numbers in the hope of a change in color, but I have nothing other than a black border.

    b = BorderFactory.createSimpleBorder(new XYEdges(1, 1, 1, 1), new XYEdges(77, 55, 22, 33), Border.STYLE_SOLID);
    

    255 should work much better than 256.

  • I bought the complete Adobe Acrobat online in August 2013, has received a number of 'touch' activation and now need to download a copy to my new laptop that runs on Windows 10.  When I get home "key/serial" number I get a message that it is not Virginia

    I bought the complete Adobe Acrobat online in August 2013, has received a number of 'touch' activation and now need to download a copy to my new laptop that runs on Windows 10.  When I get home "key/serial" number I get a message that is not valid.  What should I do to get my product loaded on the new computer?

    Hello

    Please see: -.

    Error "serial number is not valid for this product". Creative Suite
    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-valid-product.html

    To locate the serial number:

    http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

  • What the resolution is taken in charge by video?

    I'm downloading a lot of my videos from my devices (iPhone, GoPro and Canon 5 d). I see that my file formats are supported - but I wonder what the resolution is taken care of and used.

    In particular:

    -Download the file again later - this is the original file?

    -When the streaming - y at - it took maximum supported continuous resolution?

    Helge-

    Videos are saved to Revel in their original format. When you download the video of Revel in your computer, you can download the original format. For reading online, we have also to build and save the different video formats in 720 p and 360 p H264 with mp4 extension.

    Guinot

  • Change the value of "int" one within the arraylist class instance.

    It's my program...

    -Hello.java

    public class Hello {}

    public int a = 5;
    public char c = 'A ';
    }

    -Main.java-

    public class Main {}

    ArrayList < Hello > Hello = new ArrayList < Hello > ();
    Hello.Add (new Hello());

    Public Shared Sub main (String [] args) {}
    int b;
    int c;
    I'm going to get the value of "int a" in the first list of tables and store it in "int b.
    b = hello.get (0) .a;

    Now, I want to change the value of "int a" within the first class of the table
    ///////////////////////////////
    WHAT SHOULD I DO...? //
    //////////////////////////////

    Finally, I'll get the value of "int a" and store it in "int c".
    c = hello.get (0) .a;


    }

    }

    Help, please... >! @! @~

    Well, nothing of this code will compile, but if you corrected the errors, and that was the case, you can replace it with

    hello.get(0).a = 123;
    

    But what you should really do is read all the tutorials you can find.

  • [Flex 4] calculate the width/height of online or with function bindable component

    What I want to achieve is something like these two examples (it does not work, it's just the idea):

    (1) online

    < s:Group id = "main" width = "100%" height = "100%" minWidth = minHeight "950" = "650" >

    < s:Group width = "100%" height = "{If (main.height < main.minHeight) {return (main.minHeight-;)} else footer.height {return (main.height - footer.height ;)})}" > ")}}"

    < / s:Group >

    < s:Group id = "footer" width = "100%" height = "50" >

    < / s:Group >

    < / s:Group >

    (2) somehow set the calculation to the outside in a function maybe like this:

    [Bindable] (as it seems to work, but the compiler generates error that there should be some event specified as this [Bindable(event="someEvent")]name, but then it does not work)

    public Function calcHeight (): number {}

    If (main.height < main.minHeight) {}

    return (main.minHeight - footer.height);

    } else {}

    return (main.height - footer.height);

    }

    }

    < s:Group id = "main" width = "100%" height = "100%" minWidth = minHeight "950" = "650" >

    < s:Group width = "100%" height = "{calcHeight ()}" >

    < / s:Group >

    < s:Group id = "footer" width = "100%" height = "50" >

    < / s:Group >

    < / s:Group >

    It must be something very simple... but I've been Googling for it for 2 hours now and I could not find what I was looking for. Help please

    So that the first option (online) working, you can use a short variant of if-else:

    height = "{hand. Height < main.minHeight? "{main.minHeight - footer.height: main.height - footer.height}.

    Note the sequence < : MXML is just an XML file, < and=""> (and other symbols) have a special meaning and must be escaped. But it is a ugly looking code and you should avoid that.

    Now at atchieve you can use option 2: create a function. The reason why it doesn't work for you, it is to bind a function, you need a custom event. In your case you can listen on main.heigh, main.minHeight, and footer.height properties propertyChange events or resize event on the hand and who knows what else. It is unnecessary and difficult.

    If my interpretation of what you're trying to atchieve is correct, this should do the trick.


      

         
      
      
      

      
      

    Or you could do it like this (I prefer this variant):


      
      

      
      

    As you can see, no data binding or listening to all kinds of events and customized shipment that aren't necessary. Correct use of containers and layouts can save your day.

    See you soon,.

    Michael

    PS You should really look at things in a simple way somehow.

  • I was wondering what the difference was between the powerbeats 2 and the powerbeats 3. What is this new "chip" in the powerbeats 3?

    I was wondering what the difference was between the powerbeats 2 and the powerbeats 3. What is this new "chip" in the powerbeats 3?

    Hello

    Main differences are:

    • Up to 12 hours of battery life with Powerbeats3, which use chips to W1 Apple energy-efficient (vs. up to 6 hours of battery life with Powerbeats2).
    • A quick charge of 5 minutes for a typical use of an hour (vs 15 minutes to load).
    • Improved ergonomic design.

    More information:

    http://www.Apple.com/shop/product/MNN02LL/A/powerbeats3-wireless-earphones-shock-Jaune

    http://www.beatsbydre.com/earphones/browse-earphones/wireless-earphones/ML8V2.ht ml

  • There is a problem Kurt iTunes does not accept that I don't know what the cause of the room!

    Have you tried to do what the message tells you to do and contacted the support of iTunes? What did say when you did?

  • How to find out what the police are actually using Firefox?

    How to find out what the police are actually using Firefox?
    Inspect the element don't say what substitute fonts.

    Firefox 24 ESR has the tab fonts in the Inspector, which shouldn't be a problem.

  • I need to scan my macbook pro for the virus. any medium online Apple?

    I need to scan my macbook pro for the virus. any medium online Apple?

    Viruses are made for Windows computers.  Macs are less vulnerable to viruses. Why do you think your Mac virus?

    http://www.reedcorner.NET/MMG/

    http://www.thexlab.com/FAQs/malspyware.html

    Mac quarantine folder: about the alert "do you want to open it? (file quarantine / known malicious code detection) in OS X - Apple support

  • Reseantly I baught iphone 6splus after a month of sum for the blank page music player is plurarite of I don't know what the problem

    Reseantly I baught iphone 6splus after a month the music player sometimes blank page is plurarite of I don't know what the problem is.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

  • Why - what the apple mouse always unplug, then reconnect. No matter the State of the battery - new or otherwise.

    Why - what the apple mouse always unplug, then reconnect. No matter the State of the battery - new or otherwise.

    When did start?  I have the same problem for about 3 days.  I downloaded and applied update of OS X El Capitan 10.11.4 Combo, ran disk utility and ran disk first aid.  Have not had a problem since (touch wood because it is only since the mid morning today).

  • Nightshift is NOT included in my old version 9.3 of iPads news. What the *?

    Nightshift is NOT included in new 9.3 update my old iPad. What the *?

    Only the most recent devices have the ability for the night shift. Just like older devices may never have Siri or Live Photos, they simply do not have the material for the software work.

Maybe you are looking for

  • How do I permanantly prevent a site from storing data offline

    HelloI noticed that I have never visited a Web site (until I noticed today) is ranked in my preferences 'Advanced', 'network' and even if I can temporarily remove it via the 'Clear now' button, he later returned. I google the issue and read astoundin

  • Screen off cuts / Audio

    My 55WF655 Grand Wega KDF, bought in 2006, goes through the following cycle after that power has sat for 5 minutes: -L' screen will dim the audio stops and the power light on the front of the TV blinks for about 40 seconds. -After about a minute, the

  • Portege 7200 keyboard

    Can anyone help. Letters of keyboard double types. that is, when you type s I get ks when I type, I get iw. Shift puts on NumLock SPACEBAR works the nt, nordoes return space group. Also affected by the same problem numers

  • Can I install Windows vista 64-bit for free if I have the 32-bit version preinstalled (OEM)?

    I have Windows Vista 32 bit pre-installed on my computer and now I'm ready to add more memory to my machine. I've already paid for Windows Vista, when I bought my Dell computer a few years (I "réinstallation DVD Windows Vista Home Premium 32-bit"). I

  • How to make Vista all-black and white

    I'm colorblind so I cannot distinguish the colors 32 million or however many screens of Vista. To save cycles of calculation and allow easier work apparently space, I want to make my system Vista in black and white. Monochrome. How to achieve this?