Bug 39374 - When add CJK string to the textbox, a nullpointer occured
Summary: When add CJK string to the textbox, a nullpointer occured
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: Other Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 06:51 UTC by Jason Bourne
Modified: 2006-04-21 07:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Bourne 2006-04-21 06:51:29 UTC
When add CJK(chinese ,Japanese, Keroa) charector to the TextBox,
a null pointer error occured.

here is the string:
"Text Box Helper ’†•¶’†•¶ ƒAƒCƒeƒB["
Comment 1 Nick Burch 2006-04-21 14:05:31 UTC
Ah, there were two bugs:
* TextBox wasn't telling TextHeaderAtom what its parent was, so it couldn't swap
a TextBytesAtom for a TextCharsAtom
* TextBox wasn't using the normal findTextRuns code, so was breaking on
TextCharsAtom ones

I've fixed TextBox, and now I can happily read and write non US-Ascii values
with a TextBox.

If you grab the latest SVN, it should work fine for you.