check length of string before indexing
Merge branch 'dev-gradle' into project-name-null-pointer