Merge "Fix IMC NPE for try to access view without attach window" into main