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

AIR 18 Beta "Parameter firstLine must be non-null" Error

Participant ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

I have an error which is the below from Adobe AIR 18.0.0.96 and 18.0.0.109 on android and ios.

But same project works fine with AIR 17.0.0.144 on android and ios.

Unfortunately i can not send you any reproducible sample file because i encountered this error from a big project and i don't know how can i reproduce the issue.

I hope you can understand the problem from the error screenshot.

thanks.

error.png

TOPICS
Air beta

Views

1.2K

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

correct answers 1 Correct answer

Participant , May 21, 2015 May 21, 2015

the bug has been fixed in latest beta release (18.0.0.130) on labs page.

thanks.

Votes

Translate

Translate
Participant ,
May 07, 2015 May 07, 2015

Copy link to clipboard

Copied

i have been tested 18.0.0.114 but i encountered same weird behavior and i don't know what should i do.

have you any idea about the problem?

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
Adobe Employee ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

Hi,

We would surely like to help you.

But we will need some information to begin with. Could you please try to narrow it down to find that which API's in the code are causing this issue. As we don't have any idea about the source code, it will be difficult for us to guess that just on the basis of screenshot.

And also share the following information to us:

1. Which tool you are using Flash Builder or Pro?

2. On which device you are facing this 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
Participant ,
May 08, 2015 May 08, 2015

Copy link to clipboard

Copied

thanks for reply.

1) flash pro cs6

2) air simulator

os: windows 8.1 - 64bit

probably cause of problem is Flash Pro CS6, TLFTextField and AIRSDK 18 integration.

workaround 1 > i removed a TLFTextField object from the stage and problem solved.

workaround 2 > i changed tlf_txt.text = "bla bla" to tlf_txt.htmlText = "bla bla" and problem solved.

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
Adobe Employee ,
May 13, 2015 May 13, 2015

Copy link to clipboard

Copied

Thanks for sharing info with us.

We are able to reproduce this issue at our end. We are Investigating this.

We will revert you asap.

Thanks,

Adobe AIR Team

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
Community Beginner ,
May 15, 2015 May 15, 2015

Copy link to clipboard

Copied

Same error here. Please fix asap. Screenshot:

AIR_18_bug_parameter_firstLine_must_be_non_null.png

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
Participant ,
May 21, 2015 May 21, 2015

Copy link to clipboard

Copied

the bug has been fixed in latest beta release (18.0.0.130) on labs page.

thanks.

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
Community Beginner ,
May 21, 2015 May 21, 2015

Copy link to clipboard

Copied

It is ok in my case. No more problem. Thanks

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
Explorer ,
Jul 13, 2015 Jul 13, 2015

Copy link to clipboard

Copied

LATEST

This bug still exists in Air 18.  I just tried to use a very simple construct using

<s:RichEditableText width="100%"  height="100%" fontSize="20"  fontFamily="Arial" textFlow="{textflow}"/>

where textflow is created using

    <fx:String id="helpText">The Badge print application allows you to print your badge by either using the bar code (QR Code) that was sent to you in your confirmation email   
   </fx:String>

and

private function setItemText(content:String):TextFlow

            {

              

                var myTextFlow:TextFlow = TextConverter.importToFlow(content, TextConverter.TEXT_FIELD_HTML_FORMAT, _config);

              

                var ca:TextLayoutFormat = new TextLayoutFormat(myTextFlow.format);

                ca.fontFamily = "Georgia, Times";

                ca.fontSize = 16;

                ca.textIndent = 15;

                ca.paragraphSpaceAfter = 10;

                ca.textAlign = TextAlign.LEFT;

                myTextFlow.format = ca;

              

                return myTextFlow;

              

            }

and creationComplete of component:

textflow=setItemText(helpText);

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
May 13, 2015 May 13, 2015

Copy link to clipboard

Copied

I got the same error which is the below from Adobe AIR 18 beta on windows 7.

But same project works fine with AIR 17.0.0.144(172).

TypeError: Error #2007: Parameter firstLine must be non-null.

  at flash.text.engine::TextBlock/releaseLines()

  at flashx.textLayout.factory::TextLineFactoryBase/callbackWithTextLines()

  at flashx.textLayout.factory::StringTextLineFactory/createTextLinesInternal()

  at flashx.textLayout.factory::StringTextLineFactory/createTextLines()

  at spark.components::RichText/createTextLines()

  at spark.components::RichText/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()

  at spark.components.supportClasses::TextBase/updateDisplayList()

  at spark.components::RichText/updateDisplayList()

  at mx.core::UIComponent/validateDisplayList()

  at mx.managers::LayoutManager/validateDisplayList()

  at mx.managers::LayoutManager/doPhasedInstantiation()

  at mx.managers::LayoutManager/doPhasedInstantiationCallback()

My application is http://hosted.comm100.com/livechat/airInstall/Comm100_Live_Chat_Desktop_app.air

You can download it and install to reproduce 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