Kaaz / DiscordBot

A Java Discord bot using JDA
Apache License 2.0
131 stars 53 forks source link

Various boot errors #51

Open luisbaker opened 4 years ago

luisbaker commented 4 years ago

I've encountered a java.lang.NullPointerException Accompanied stacktrace: java.util.Calendar.setTime(Calendar.java:1770) java.text.SimpleDateFormat.format(SimpleDateFormat.java:943) java.text.SimpleDateFormat.format(SimpleDateFormat.java:936) java.text.DateFormat.format(DateFormat.java:345) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:148) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:139) emily.command.administrative.modactions.AbstractModActionCommand.execute(AbstractModActionCommand.java:83) emily.handler.CommandHandler.process(CommandHandler.java:152) emily.main.DiscordBot.handleMessage(DiscordBot.java:384) emily.event.JDAEvents.onGuildMessageReceived(JDAEvents.java:234) net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:387) emily.event.JDAEventManager.lambda$handle$0(JDAEventManager.java:70) I've encountered a java.lang.NullPointerException Accompanied stacktrace: java.util.Calendar.setTime(Calendar.java:1770) java.text.SimpleDateFormat.format(SimpleDateFormat.java:943) java.text.SimpleDateFormat.format(SimpleDateFormat.java:936) java.text.DateFormat.format(DateFormat.java:345) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:148) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:139) emily.command.administrative.modactions.AbstractModActionCommand.execute(AbstractModActionCommand.java:83) emily.handler.CommandHandler.process(CommandHandler.java:152) emily.main.DiscordBot.handleMessage(DiscordBot.java:384) emily.event.JDAEvents.onGuildMessageReceived(JDAEvents.java:234) net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:387) emily.event.JDAEventManager.lambda$handle$0(JDAEventManager.java:70) I've encountered a java.lang.NullPointerException Accompanied stacktrace: java.util.Calendar.setTime(Calendar.java:1770) java.text.SimpleDateFormat.format(SimpleDateFormat.java:943) java.text.SimpleDateFormat.format(SimpleDateFormat.java:936) java.text.DateFormat.format(DateFormat.java:345) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:148) emily.db.controllers.CModerationCase.buildCase(CModerationCase.java:139) emily.command.administrative.modactions.AbstractModActionCommand.execute(AbstractModActionCommand.java:83) emily.handler.CommandHandler.process(CommandHandler.java:152) emily.main.DiscordBot.handleMessage(DiscordBot.java:384) emily.event.JDAEvents.onGuildMessageReceived(JDAEvents.java:234) net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:387) emily.event.JDAEventManager.lambda$handle$0(JDAEventManager.java:70)

cfmaniac commented 3 years ago

I'm not sure if this helps - But I got similiar issues after doing a direct clone of the Project. I tried a second time and in IntelliJ added it as a Gradle Project, and it doewnloaded all dependancies. It appears to have build properly, I've not yet tried to run it.