Check if QQC2.ApplicationWindow.window object exists
Before checking visibility attribute of the QQC2.ApplicationWindow.window object it should be first checked if that object actually exists to not try to check "visibility" the Null object.
Before checking visibility attribute of the QQC2.ApplicationWindow.window object it should be first checked if that object actually exists to not try to check "visibility" the Null object.