[dexter] Check path != None before calling os.path.exists
authorOCHyams <orlando.hyams@sony.com>
Mon, 15 Mar 2021 11:28:28 +0000 (11:28 +0000)
committerOCHyams <orlando.hyams@sony.com>
Mon, 15 Mar 2021 11:40:05 +0000 (11:40 +0000)
commit61d314024dc447e49481cb8494bf7165f9ec1323
tree5b51cb459f4ad4301e07ae065fe208c900a559b2
parent0df28acffb5637ffb9abc908ef638f29389e0012
[dexter] Check path != None before calling os.path.exists

The test optnone-simple-functions.cpp added in D97668 fails on macOS.
os.path.exists raises an exception because we pass it None. Guard against this.

Related revision: https://reviews.llvm.org/D97668
debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py