ASF Bugzilla – Attachment 25987 Details for
Bug 48182
[PATCH] NPE when resolving substitutions for Arabic script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix v2
Batik-Bug48182-ProposedFix.patch (text/plain), 1.38 KB, created by
Helder Magalhães
on 2010-09-04 08:01:25 UTC
(
hide
)
Description:
Proposed fix v2
Filename:
MIME Type:
Creator:
Helder Magalhães
Created:
2010-09-04 08:01:25 UTC
Size:
1.38 KB
patch
obsolete
>Index: SVGFont.java >=================================================================== >--- SVGFont.java (revision 985475) >+++ SVGFont.java (working copy) >@@ -339,12 +339,18 @@ > Feature medi = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_MEDI); > Feature fina = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_FINA); > >- initialSubst = (SingleSubst) >- gsub.getLookupList().getLookup(init, 0).getSubtable(0); >- medialSubst = (SingleSubst) >- gsub.getLookupList().getLookup(medi, 0).getSubtable(0); >- terminalSubst = (SingleSubst) >- gsub.getLookupList().getLookup(fina, 0).getSubtable(0); >+ if (init != null) { >+ initialSubst = (SingleSubst) >+ gsub.getLookupList().getLookup(init, 0).getSubtable(0); >+ } >+ if (medi != null) { >+ medialSubst = (SingleSubst) >+ gsub.getLookupList().getLookup(medi, 0).getSubtable(0); >+ } >+ if (fina != null) { >+ terminalSubst = (SingleSubst) >+ gsub.getLookupList().getLookup(fina, 0).getSubtable(0); >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48182
:
24520
| 25987