Prevent NPE, set .gitattributes