Merged remote changes.

Mon, 02 Nov 2015 16:35:06 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 02 Nov 2015 16:35:06 +0100
changeset 4527
26fee37accce
parent 4526
7b276a2b29cc (current diff)
parent 4524
5543f4dec8f7 (diff)
child 4528
63154a5e18d0

Merged remote changes.

diff -r 7b276a2b29cc -r 26fee37accce Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Mon Nov 02 16:34:21 2015 +0100
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Mon Nov 02 16:35:06 2015 +0100
@@ -353,13 +353,16 @@
                     source = ""
             else:
                 source = self.source.splitlines()
-        for _fn, lineno, col, code, msg in warnings:
-            self.noResults = False
-            if source:
-                scr_line = source[lineno - 1].strip()
-            else:
-                scr_line = ""
-            self.__createResultItem(_fn, lineno, col, msg, scr_line, True)
+            for _fn, lineno, col, code, msg in warnings:
+                self.noResults = False
+                if source:
+                    try:
+                        scr_line = source[lineno - 1].strip()
+                    except IndexError:
+                        scr_line = ""
+                else:
+                    scr_line = ""
+                self.__createResultItem(_fn, lineno, col, msg, scr_line, True)
 
         self.progress += 1
         self.checkProgress.setValue(self.progress)

eric ide

mercurial