• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Err #1009: Cannot access ... null object reference. at Application/softKeyboardDeactivateHandler()

Guest
Dec 27, 2011 Dec 27, 2011

Copy link to clipboard

Copied

Here is the full error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at spark.components::Application/softKeyboardDeactivateHandler()

It then takes me to the Application.xml class file. I have no idea what's wrong but it seems to only happen during debug mode. The only results I got on google where in Chinese. Anyone know what's wrong?

Views

667

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 27, 2011 Dec 27, 2011

Copy link to clipboard

Copied

It takes me to the following function:

private function softKeyboardDeactivateHandler(event:SoftKeyboardEvent):void

    {

        if (this === FlexGlobals.topLevelApplication)

        {           

            isSoftKeyboardActive = false;

           

            if (softKeyboardBehavior == "none" && resizeForSoftKeyboard)

            {

                var sm:SystemManager = systemManager as SystemManager;

                var scaleFactor:Number = 1;

               

                // Account for any density scaling

                if (sm)

                    scaleFactor = sm.densityScale;

               

                // Restore the original values

                setActualSize(stage.stageWidth / scaleFactor, stage.stageHeight / scaleFactor);

               

                validateNow(); // Validate so that other listeners like Scroller get the updated dimensions

            }

        }

    }

I really have no control over this code so it's pretty messed up.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 28, 2011 Dec 28, 2011

Copy link to clipboard

Copied

LATEST

Setting resizeForSoftKeyboard="false" in the main mxml file fixed the issue

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines