finding out where null pointer exceptions coming from in test cases, add...

...ed get method to viewq for dialog test