Commits

Kimmo Varis committed 8e2a302

Check if there are results from Cppcheck before parsing.

  • Participants
  • Parent commits 9bad726

Comments (0)

Files changed (1)

src/runcppcheck.py

     def parseresults(self):
         '''Parse the result XML to error items.'''
 
+        # Check if there are errors (results) from Cppcheck
+        if len(self.errout) == 0:
+            return
         root = ET.fromstring(self.errout)
         for erritem in root.iter('error'):
             errorst = error.Error()