mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-19 07:44:23 +01:00
fixed errors due to null values per issue #309
This commit is contained in:
@@ -591,6 +591,7 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
#else
|
#else
|
||||||
$enc.html($id.value)
|
$enc.html($id.value)
|
||||||
#end
|
#end
|
||||||
|
#set($cpeSort=0)
|
||||||
#if ($cpeIdConf == "")
|
#if ($cpeIdConf == "")
|
||||||
#set($cpeIdConf=$id.confidence)
|
#set($cpeIdConf=$id.confidence)
|
||||||
#set($cpeSort=$id.confidence.ordinal())
|
#set($cpeSort=$id.confidence.ordinal())
|
||||||
@@ -602,11 +603,15 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
</td>
|
</td>
|
||||||
|
#if ($mavenlink=="")
|
||||||
|
<td data-sort-value="">
|
||||||
|
#else
|
||||||
<td data-sort-value="$enc.html($mavenlink.value)">#if( $mavenlink.url )
|
<td data-sort-value="$enc.html($mavenlink.value)">#if( $mavenlink.url )
|
||||||
##yes, we are HTML Encoding the href. this is okay. We can't URL encode as we have to trust the analyzer here...
|
##yes, we are HTML Encoding the href. This is okay. We can't URL encode as we have to trust the analyzer here...
|
||||||
<a href="$enc.html($mavenlink.url)" target="_blank">$enc.html($mavenlink.value)</a>
|
<a href="$enc.html($mavenlink.url)" target="_blank">$enc.html($mavenlink.value)</a>
|
||||||
#elseif ($mavenlink.value)
|
#elseif ($mavenlink.value)
|
||||||
$enc.html($mavenlink.value)
|
$enc.html($mavenlink.value)
|
||||||
|
#end
|
||||||
#end</td>
|
#end</td>
|
||||||
#set($cveImpact=-1)
|
#set($cveImpact=-1)
|
||||||
#foreach($vuln in $dependency.getVulnerabilities())
|
#foreach($vuln in $dependency.getVulnerabilities())
|
||||||
|
|||||||
Reference in New Issue
Block a user