Fix DumpWindowHierarchy NullPointerException
Merge pull request #2657 from bootstraponline/npe_fix

Fix DumpWindowHierarchy NullPointerException