Internal Error in Subcommand Bukkit

I’ve been facing a problem lately with bukkit coding. When I launch the plugin and just type /akitz command label or name it pops up with an Internal Error but when I type /akitz {subcommand} it works fine! everything here basically works fine but just the /akitz <– alone when i type it, an error pops up! here’s the code:

package me.frostgamersa;

import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
@Override
public void onEnable() {

}

@Override
public void onDisable() {

}


@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    if (label.equalsIgnoreCase("akitz")) {
        Player player = (Player) sender;

            if (args.length == 0 || args.length < 2) {
                player.sendMessage("§cIncorrect Arguements");

                if (args[0].equalsIgnoreCase("legend")) {
                    player.sendMessage("§bYou have been Granted §3Legend §bKit!");
                    CustomItems.givela(player);
                    CustomItems.givels(player);
                    player.getInventory().addItem(new ItemStack(Material.GOLDEN_APPLE, 64));
                    return true;
                }
                if (args[0].equalsIgnoreCase("god")) {
                    player.sendMessage("§bYou have been Granted §3God §bKit!");
                    CustomItems.givega(player);
                    CustomItems.givegs(player);
                    player.getInventory().addItem(new ItemStack(Material.GOLDEN_APPLE, 64));
                    return true;
                } else {
                    player.sendMessage("§cIncorrect Arguements!");
                    return true;
                }
            }