code cleanup
[fanfix.git] / Main.java
index b49cf0fb13e38338c293166027882e3df3876e67..9d9592eefd3356e9d7c1e61b9e0b5142ab7b2376 100644 (file)
--- a/Main.java
+++ b/Main.java
@@ -126,6 +126,9 @@ public class Main {
 
                int exitCode = 0;
                for (int i = 0; exitCode == 0 && i < args.length; i++) {
+                       if (args[i] == null)
+                               continue;
+
                        // Action (--) handling:
                        if (!noMoreActions && args[i].startsWith("--")) {
                                if (args[i].equals("--")) {
@@ -687,10 +690,13 @@ public class Main {
        }
 
        /**
-        * Will check if updates are available.
+        * Will check if updates are available, synchronously.
         * <p>
         * For this, it will simply forward the call to
         * {@link Main#checkUpdates(String)} with a value of "nikiroo/fanfix".
+        * <p>
+        * You may want to override it so you call the forward method with the right
+        * parameters (or also if you want it to be asynchronous).
         * 
         * @return the newer version information or NULL if nothing new
         */