pdfbox-commits mailing list archives

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

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


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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java?rev=1763930&r1=1763929&r2=1763930&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java
Sat Oct  8 18:49:47 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