This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 57364
Collapse All | Expand All

(-)Handler.java (+18 lines)
Lines 78-83 Link Here
78
    protected int cli(CLIHandler.Args args) {
78
    protected int cli(CLIHandler.Args args) {
79
        String[] argv = args.getArguments();
79
        String[] argv = args.getArguments();
80
        File curDir = args.getCurrentDirectory ();
80
        File curDir = args.getCurrentDirectory ();
81
        int nonNullIndex = -1;
81
        for (int i = 0; i < argv.length; i++) {
82
        for (int i = 0; i < argv.length; i++) {
82
            if (argv[i] == null) {
83
            if (argv[i] == null) {
83
                continue;
84
                continue;
Lines 96-102 Link Here
96
                    }
97
                    }
97
                }
98
                }
98
            } 
99
            } 
100
            if (nonNullIndex == -1) {
101
                nonNullIndex = i;
102
            } else {
103
                nonNullIndex = -2;
104
            }
105
        }
106
        
107
        /* No -open <filename> or --open <filename> arguments found. */
108
        
109
        if (nonNullIndex >= 0) {    //exactly one non-null argument found
110
            String arg = argv[nonNullIndex];
111
            assert arg != null;
112
            
113
            if (!arg.startsWith("-")) {                                 //NOI18N
114
                return openFile (curDir, args, argv, nonNullIndex);
115
            }
99
        }
116
        }
117
        
100
        // No problems.
118
        // No problems.
101
        return 0;
119
        return 0;
102
    }
120
    }

Return to bug 57364