Răsfoiți Sursa

derped again. had to change some if''s

git-svn-id: http://repo.nplusc.de/svn/iZink@51 8b19561d-0d00-6744-8ac1-9afc8f58a8aa
masterX244 12 ani în urmă
părinte
comite
ec2c7dd1a0

+ 2 - 1
IZSetup/src/de/nplusc/izc/InstallPak/InstallProgressGui.java

@@ -171,7 +171,8 @@ public class InstallProgressGui extends javax.swing.JFrame
                     String[] cmd = queue[i];
                     if(!cmd[0].equalsIgnoreCase("wait"))
                     {
-                        if(cmd[0].length()>4&&(!cmd[0].substring(0,5).equalsIgnoreCase("Copy:")))
+                                    //safeguard gegen nullpointer bei <4 strings
+                        if((cmd[0].length()>4&&(!cmd[0].substring(0,5).equalsIgnoreCase("Copy:")))||(cmd[0].length()<5))
                         {
                         Tools.DebugHelperPrint(msg, true, "iZsetup.enableFinerDebug");
                         Tools.DebugHelperPrint(arraytools.ArrayKleben(cmd, " "), true, "iZsetup.enableFinerDebug");