import java.io.FileWriter;
import java.io.IOException;
+import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
public void outCrashReport() {
try {
+ if(Files.notExists(Paths.get("Crash-Report")))
+ Files.createDirectory(Paths.get("Crash-Report"));
FileWriter writer = new FileWriter(Paths.get("Crash-Report/" + FORMAT.format(new Date()) + ".txt").toFile());
writer.write(generateCrashReport());
writer.close();
String currentTabName = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());
if(currentTabName.equals("SongInfo") && labelCurrentSongOrderTool.getText().equals("null")) {
logger.info("Detected switching tool tab");
+ if(listToolMapDataFuture == null) {
+ logger.warn("Async task has not initialized yet. Aborting...");
+ return;
+ }
if(toolIntegrateList == null) {
return;
}