Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

(bb10) very common error when rotating

Hi,

Just to let you know, I am having an error when rotating my app and I think I can't catch it.

It occurs quite often, don't know why as debugger does not show any thing related to my app.

 

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at IowWindowImpl/set acceptsFocus()
    at QNXWindow/set acceptsFocus()
    at qnx.fuse.ui.managers::WindowManager/applyWindowOptions()
    at qnx.fuse.ui.managers::WindowManager/update()
    at qnx.fuse.ui.managers::WindowManager/setScreenSize()
    at qnx.fuse.ui.managers::WindowManager/onResize()

 

 

Any idea?

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: (bb10) very common error when rotating

Are doing anything with forcing focus onto something?
Are you listening for rotation and doing anything special?
How are you updating the UI on rotation?
Please use plain text.
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) very common error when rotating

nothing with focus.

I listen for rotation and position components with new stage width/height, widths, heights, x's, y's, graphics...that's all (I think)

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
Developer
mdd
Posts: 222
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Re: (bb10) very common error when rotating

I had a similar problem, but caused by actionBar:

 

In my case, I found that it happened after I had destroyed and re-created a dialog.  At the bottom of my dialog class hierarchy, the dialog extends Container and in the dialog's destroy method, I called super.destroy().  Removing that, eliminated the rotation error.

 

Regards,

Please use plain text.
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) very common error when rotating

I'll check at this, it could be something like this. I'm algo using actionBar and reescaling on rotate to fit new size. Might be something...

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
Developer
mdd
Posts: 222
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Re: (bb10) very common error when rotating

actionBar takes care of resizing itself - at least in my case.

 

Regards,

Please use plain text.
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) very common error when rotating

I think that's because you have added it to a Container.
Mine is added to Sprite and don't get resized by itself
My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.