Merge pull request #576 from kivy/fix_old

Fix old toolchain index error
This commit is contained in:
Alexander Taylor 2017-10-19 19:02:59 +01:00 committed by GitHub
commit 3b204cbb93

View file

@ -854,7 +854,7 @@ class TargetAndroid(Target):
fd.writelines((line.decode('utf-8') for line in content))
except:
fd.writelines(content)
if not content[-1].endswith(u'\n'):
if content and not content[-1].endswith(u'\n'):
fd.write(u'\n')
for index, ref in enumerate(references):
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))