X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Farachne%2Fparser%2FHtmlEditorKitParser.java;h=888e2df694718cf2455cb721b0fb0ac45435a6bd;hb=e6da84191ac8ebaf973be765101dd63c0cda1198;hp=47e2d52f32f891a0e842fa2296674e2a6191bfe4;hpb=80488ec32fe623903f8717a969af2c2089974c57;p=arachne.git diff --git a/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java b/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java index 47e2d52..888e2df 100644 --- a/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java +++ b/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java @@ -89,11 +89,7 @@ public class HtmlEditorKitParser extends HTMLEditorKit.ParserCallback implements linkTarget = href; inLink = true; linkText = new StringBuilder(); - linkTitle = null; - String title = (String) attributeSet.getAttribute(HTML.Attribute.TITLE); - if (title != null) { - linkTitle = title; - } + linkTitle = (String) attributeSet.getAttribute(HTML.Attribute.TITLE); } } if (inLink) {