Cannot invoke "String.isEmpty()" because "content" is null

I’m creating an NPC, but I am getting this error:

org.bukkit.command.CommandException: Unhandled exception executing command ‘setup’ in plugin Stranded_MC_Prisons v1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.5.jar:git-Paper-781]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-781]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:826) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2185) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2000) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1953) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:49) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:7) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1266) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1259) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1333) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-781]
at java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke “String.isEmpty()” because “content” is null
at net.kyori.adventure.text.Component.text(Component.java:587) ~[patched_1.16.5.jar:git-Paper-781]
at net.minecraft.server.v1_16_R3.EntityPlayer.(EntityPlayer.java:284) ~[patched_1.16.5.jar:git-Paper-781]
at com.inf_loop.strandedMC.Core.NPC.NPC.(NPC.java:24) ~[?:?]
at com.inf_loop.strandedMC.Core.NPC.NPC.create(NPC.java:44) ~[?:?]
at com.inf_loop.strandedMC.Core.NPC.NPCCode.createNPC(NPCCode.java:84) ~[?:?]
at com.inf_loop.strandedMC.Prisons.Commands.setupCmd.onCommand(setupCmd.java:55) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Paper-781]

My Code:
None of the parameters are null

public NPC(MinecraftServer server, WorldServer world, GameProfile gp,
		PlayerInteractManager pim) {
	super(server, world, gp, pim);
}

public static NPC create(Location loc, String uuid, String name, Player p) {
	MinecraftServer server = ((CraftServer)Bukkit.getServer()).getServer();
	WorldServer world = ((CraftWorld)Bukkit.getWorld(loc.getWorld().getName())).getHandle();
	GameProfile gp = new GameProfile(UUID.fromString(uuid), name);

	String[] prop = (p == null)?NPCCode.getSkin(name):NPCCode.getSkin(p, name);
	if(prop != null) {
		gp.getProperties().put("textures", new Property("textures", prop[0], prop[1]));

		//p.sendMessage(server.toString());
		//p.sendMessage(world.toString());
		//p.sendMessage(server.toString());
		p.sendMessage(p.getUniqueId().toString());
		p.sendMessage("");
		p.sendMessage((((CraftPlayer)p).getHandle()).getProfile().toString());
		//p.sendMessage(new PlayerInteractManager(world).toString());
		
		NPC npc = new NPC(server, world, gp, new PlayerInteractManager(world));
		return npc;
	}
	return null;
}