pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1763931 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
Date Sat, 08 Oct 2016 18:49:52 GMT
Author: tilman
Date: Sat Oct  8 18:49:52 2016
New Revision: 1763931

URL: http://svn.apache.org/viewvc?rev=1763931&view=rev
Log:
PDFBOX-3521: set fontProvider last to avoid concurrency problems, as suggested by Rob Hinds


Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java?rev=1763931&r1=1763930&r2=1763931&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java Sat
Oct  8 18:49:52 2016
@@ -135,8 +135,8 @@ final class FontMapperImpl implements Fo
      */
     public synchronized void setProvider(FontProvider fontProvider)
     {
-        this.fontProvider = fontProvider;
         fontInfoByName = createFontInfoByName(fontProvider.getFontInfo());
+        this.fontProvider = fontProvider;
     }
 
     /**



Mime
View raw message