Error trying to invoke BlackBerry native with the rental document map

Hello

I am trying to invoke a card native BlackBerry (using the Simulator), on the OS 5.0.  I also try to draw multiple markers location with a rental document.  My code runs successfully, except that I get the following error:

Thread [net_rim_bb_lbs(182)id=256121856] (Suspended (exception NullPointerException))
    MapRect.intersects(short[]) line: 74
    MapRender.renderLayer(BaseDataSource, Graphics, Maplet, Layer, MapRect, int, int, XYRect, XYRect) line: 331
    MapRender.render(BaseDataSource, RenderListener, Graphics, MapRect, int, int, XYRect, XYRect) line: 483
    BaseMapRenderer.render(BaseDataSource, RenderListener, Graphics, MapRect, MapRect, int, int, int, int, XYRect, XYRect) line: 47
    BaseDataSource.render(RenderListener, Graphics, MapRect, MapRect, int, int, int, int, XYRect, XYRect, Transform) line: 247
    RenderThread.renderImpl(Graphics, MapRect, MapRect, int, int, int, int, XYRect, XYRect) line: 259
    RenderThread.run() line: 346

Once I'm back after the error in debug mode, however, the map is shown correctly and the locations are not displayed correctly.  No one knows what might happen?  Here is my code:

if (vector != null) {

    document = "";

    for (int i = 0; i < vector.size(); i++) {

        loc = (MyLocationClass) vector.elementAt(i);

        document += "";
    }

    document += "";

    Invoke.invokeApplication(Invoke.APP_TYPE_MAPS,
            new MapsArguments(MapsArguments.ARG_LOCATION_DOCUMENT,
                    document));
}

Any help would be appreciated. Thank you!

The Simulator has a lot of questions make the cards properly (at least on my machine).

It works fine on a real device.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Satellite L305-S5919 - downgrade from Vista to XP

    Hey everybody Faizan my names and my problem is that I want to go down to XP cause I don't like vista at all I know all the steps to downgrade to xp as to change the bios to compatibility, but there is only one problem I just need an insurance to som

  • HP laptop - 15-ba078dx: compatible Bluetooth

    There is no "Bluetooth" button in settings under devices. When I go to 'devices', I have to choose is "Connected" to try to find a device. My speakers will not be judged by the computer... My laptop has bluetooth capability? Just bought this laptop t

  • Uninstall an OS from another OS

    Quite simply, I would like to uninstall an OS (Windows Seven) from another OS (Windows XP).I would really like a simple method, but I'm too clever to go as far as the command prompt.Any response would be appreciated.Matt (InTheGroove3Player)

  • code 800706 BE

    The update of Windows doesn´t work as it should.  It gives only errorcode 800706 BE.  Need help.

  • BlackBerry Smartphones SMS outgoing sometimes fails, and outgoing telephone calls sometimes fail, too.

    I bought my "BOLD" a few days ago. The first, receiver & sending SMS are OK. But soon the SMS transmission becomes a problem: it fails and the message is assigned an icon of the clock ("pending"). I can't return it. Then someone told me to "reboot" t