projects
/
maven-thymeleaf-skin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4577ed
)
Fixed possible NullPointerException during link-calculation
author
Kai Moritz
<kai@juplo.de>
Sat, 16 Jul 2016 20:45:24 +0000
(22:45 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sat, 16 Jul 2016 20:45:24 +0000
(22:45 +0200)
src/main/resources/META-INF/maven/site.vm
patch
|
blob
|
history
diff --git
a/src/main/resources/META-INF/maven/site.vm
b/src/main/resources/META-INF/maven/site.vm
index
86006d7
..
ca508d4
100644
(file)
--- a/
src/main/resources/META-INF/maven/site.vm
+++ b/
src/main/resources/META-INF/maven/site.vm
@@
-7,7
+7,11
@@
#set ( $stack = $project.getClass().forName('java.util.LinkedList').newInstance() )
#macro ( buildPages $menu )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
+ #if ( $menu.href )
+ #set ( $currentItemHref = $PathTool.calculateLink( $menu.href, $relativePath ) )
+ #else
+ #set ( $currentItemHref = '' )
+ #end
#set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
#if ($currentItemHref)