Squish: Handle None in __cropAndLog__()

Change-Id: Ie2bbcfde7684f0d25ed8ff7e7da2897a9f1a0873
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
Christian Stenger
2012-04-10 14:13:07 +02:00
parent c74458765d
commit 146b1672d2

View File

@@ -185,6 +185,9 @@ class JIRA:
# this function crops multiple whitespaces from fetched and searches for expected
# ids without using regex
def __cropAndLog__(self, fetched):
if fetched == None:
test.log("None passed to __cropAndLog__()")
return
fetched = " ".join(fetched.split())
resoInd = fetched.find('resolution-val')
statInd = fetched.find('status-val')