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

Native Development

Reply
Developer
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Bad bug in NotebookEntryDescription - return empty when it is not empty!

[ Edited ]

This is the code to output the isEmpty() check... please take a look at the output at the end. The initial isEmpty() check returns true. However, after a .text() call, the isEmpty() now returns false

 

The SDK version is 10.0.9.2372.

 

            NotebookEntryDescription entryDescription = entry.description();
            QString description = "";
            if (entryDescription.isValid()) {
                qDebug() << "Entry description is valid";
            } else {
                qDebug() << "Entry description is invalid";
            }
            if (entryDescription.isEmpty()) {
                qDebug() << "Entry description isEmpty() = true";
            } else {
                qDebug() << "Entry description isEmpty() = false";
            }
            if (entryDescription.text().compare("") == 0) {
                qDebug() << "Entry description text is equal \"\"";
            } else {
                qDebug() << "Entry description text is NOT equal \"\"";
                qDebug() << "Entry description: " << entryDescription.text();
            }
            if (entryDescription.isEmpty()) {
                qDebug() << "Entry description isEmpty() = true";
            } else {
                qDebug() << "Entry description isEmpty() = false";
            }

 

 

Debug: Entry description is valid
Debug: Entry description isEmpty() = true
Debug: Entry description text is NOT equal ""
Debug: Entry description:  "<html><head>...</head><body>Test 4 note</body></html>"
Debug: Entry description isEmpty() = false

Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Bad bug in NotebookEntryDescription - return empty when it is not empty!

[ Edited ]

Hi testinz,

 

Please log a ticket on jira (Developer Issue Tracker) with the code that's demonstrating the issue you are seeing. And, one of the BlackBerry Application Development Consultants will escalate to our internal teams.

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Bad bug in NotebookEntryDescription - return empty when it is not empty!

Hi Samar,

I logged a ticket last week already.

Thanks
Highlighted
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Bad bug in NotebookEntryDescription - return empty when it is not empty!

Hi,
Could you please add the link to this forum post for future reference?

Thanks
@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker