Added check for cpan parsing
@@ -24,7 +24,6 @@ package com.blackducksoftware.integration.hub.detect.bomtool.cpan
import org.springframework.stereotype.Component
-import com.blackducksoftware.integration.hub.detect.Application
import com.blackducksoftware.integration.hub.detect.nameversion.NameVersionNode
import com.blackducksoftware.integration.hub.detect.nameversion.NameVersionNodeImpl
@@ -38,6 +37,10 @@ class CpanListParser {
continue
}
+ if(!line.contains('\t')) {
+ continue
+ }
+
String[] module = line.split('\t')
def nameVersionNode = new NameVersionNodeImpl()
nameVersionNode.name = module[0].trim()
