diff --git a/src/main/java/w2phtml/xhtml/style/TextStyleParser.java b/src/main/java/w2phtml/xhtml/style/TextStyleParser.java index ab0ca2c..69324f4 100644 --- a/src/main/java/w2phtml/xhtml/style/TextStyleParser.java +++ b/src/main/java/w2phtml/xhtml/style/TextStyleParser.java @@ -202,8 +202,10 @@ public class TextStyleParser extends StyleWithPropertiesParser { StyleWithProperties style; style = ofr.getTextStyle(visitedStyleName); Properties props = new Properties(";"); - cssText(style, props, true); - cssHyperlink(style, props); + if (style != null) { + cssText(style, props, true); + cssHyperlink(style, props); + } String visitedAnchorDeclarationBlock = props.toString(); return visitedAnchorDeclarationBlock; }