Fix possible NullPointerException

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse committed 2004-03-28 22:00:54 +00:00
1 parent 41f14e1189
commit 72426acead
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-html2xdoc-plugin</id>
<name>Maven Html2XDoc Plug-in</name>
<currentVersion>1.2</currentVersion>
<currentVersion>1.3-SNAPSHOT</currentVersion>
<!-- Gump integration -->
<gumpRepositoryId>jakarta</gumpRepositoryId>
@@ -285,7 +285,7 @@ public class Html2XdocBean {
*/
protected boolean shouldBreakPara(Node node) {
String name = node.getName();
return name.equals("p") || name.equals("br");
return "p".equals(name) || "br".equals(name);
}
/**