typo on the nullpointer check hedgeroid
authorXeli
Wed, 10 Aug 2011 01:50:57 +0200
branchhedgeroid
changeset 5534 7f3a391a66fb
parent 5532 3d7ac2b3b703
child 5536 61431600b133
typo on the nullpointer check
project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/EngineProtocol/FrontendDataUtils.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/EngineProtocol/FrontendDataUtils.java	Wed Aug 10 01:22:52 2011 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/EngineProtocol/FrontendDataUtils.java	Wed Aug 10 01:50:57 2011 +0200
@@ -153,7 +153,7 @@
 
 		File teamsDir = new File(c.getFilesDir().getAbsolutePath() + '/' + Team.DIRECTORY_TEAMS);
 		File[] teamFileNames = teamsDir.listFiles();
-		if(teamsDir != null){
+		if(teamFileNames != null){
 			for(File s : teamFileNames){
 				Team t = Team.getTeamFromXml(s.getAbsolutePath());
 				if(t != null){