We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e56219d + 49e1866 commit cfeb256Copy full SHA for cfeb256
sonar-swift-plugin/src/main/java/org/sonar/plugins/swift/surefire/data/SurefireStaxHandler.java
@@ -121,6 +121,9 @@ private static UnitTestResult parseTestResult(SMInputCursor testCaseCursor) thro
121
122
private static long getTimeAttributeInMS(String value) throws XMLStreamException {
123
// hardcoded to Locale.ENGLISH see http://jira.codehaus.org/browse/SONAR-602
124
+ if (value == null) {
125
+ return 0L;
126
+ }
127
try {
128
Double time = ParsingUtils.parseNumber(value, Locale.ENGLISH);
129
return !Double.isNaN(time) ? (long) ParsingUtils.scaleValue(time * 1000, 3) : 0L;
0 commit comments