Skip to content

Commit

Permalink
Fix plugin installer crash with invalid versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jan 15, 2015
1 parent 0ba232d commit 8147051
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyplugin_installer/version_compare.py
Expand Up @@ -179,6 +179,9 @@ def isCompatible(curVer, minVer, maxVer):
maxVer = splitVersion( re.sub(r'[^0-9.]+', '', maxVer) )
curVer = splitVersion( re.sub(r'[^0-9.]+', '', curVer) )

if not minVer or not curVer or not maxVer:
return False

if len(minVer)<3:
minVer += ["0"]

Expand Down

0 comments on commit 8147051

Please sign in to comment.