mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 23:11:56 +01:00
Add null check add DumpLog.addLine(CharSequence)
Cancels the DumpLog task (Forgot it)
This commit is contained in:
parent
298286180c
commit
9da01941d7
@ -50,8 +50,12 @@ public class ManageDumpCommand extends SubCommand {
|
|||||||
plugin.getRunnableFactory().createNew(new AbsRunnable("DumpTask") {
|
plugin.getRunnableFactory().createNew(new AbsRunnable("DumpTask") {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
sender.sendLink("Link to the Dump", DumpUtils.dump(plugin));
|
try {
|
||||||
sender.sendLink("Report Issues here", "https://github.com/Rsl1122/Plan-PlayerAnalytics/issues/new");
|
sender.sendLink("Link to the Dump", DumpUtils.dump(plugin));
|
||||||
|
sender.sendLink("Report Issues here", "https://github.com/Rsl1122/Plan-PlayerAnalytics/issues/new");
|
||||||
|
} finally {
|
||||||
|
this.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).runTaskAsynchronously();
|
}).runTaskAsynchronously();
|
||||||
}
|
}
|
||||||
|
@ -88,6 +88,11 @@ public class DumpLog {
|
|||||||
* @param line The content of the line
|
* @param line The content of the line
|
||||||
*/
|
*/
|
||||||
private void addLine(CharSequence line) {
|
private void addLine(CharSequence line) {
|
||||||
|
if (line == null) {
|
||||||
|
lines.add("\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lines.add(line.toString());
|
lines.add(line.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user