Throw correct exception for null paths

Bug: 22519119
Change-Id: I8aff294201dfd8ec46ff3d30e4ceecea1346f29b
1 file changed