FTB Backups 2

FTB Backups 2

16M Downloads

Cannot read the array length because "files" is null

Juliandev02 opened this issue ยท 1 comments

commented

Hey. I get the following error, when the server tries to make an backup, or anyone tries to make manually make an backup:

[13:00:12] [Server thread/INFO] [ne.cr.ft.FTBBackups/]: Found world folder at /home/julian/CreateAndCraftsII/./world/.
> java.lang.NullPointerException: Cannot read the array length because "files" is null
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:84)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:90)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:90)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:90)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:90)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.utils.FileUtils.getFolderSize(FileUtils.java:90)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.BackupHandler.canCreateBackup(BackupHandler.java:471)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.BackupHandler.createBackup(BackupHandler.java:196)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.commands.BackupCommand.execute(BackupCommand.java:56)
        at TRANSFORMER/ftbbackups2@1.0.18/net.creeperhost.ftbbackups.commands.BackupCommand.lambda$register$3(BackupCommand.java:36)
        at MC-BOOTSTRAP/brigadier@1.0.18/com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.commands.Commands.m_82117_(Commands.java:234)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.network.ServerGamePacketListenerImpl.m_9957_(ServerGamePacketListenerImpl.java:1150)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.network.ServerGamePacketListenerImpl.m_143628_(ServerGamePacketListenerImpl.java:1129)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.network.ServerGamePacketListenerImpl.m_7388_(ServerGamePacketListenerImpl.java:1115)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.game.ServerboundChatPacket.m_5797_(ServerboundChatPacket.java:30)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.game.ServerboundChatPacket.m_5797_(ServerboundChatPacket.java:7)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.TickTask.run(TickTask.java:18)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:799)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:164)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:782)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:776)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:140)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:762)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:689)
        at TRANSFORMER/minecraft@1.18.2/net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261)
        at java.base/java.lang.Thread.run(Thread.java:833)

This is my config:

{
        "enabled": true,
        "command_permission_level": 3,
        "notify_op_only": true,
        "do_not_notify": false,
        "max_backups": 5,
        "backup_cron": "0 */15 * * * ?",
        "manual_backups_time": 0,
        "only_if_players_been_online": true,
        "additional_directories": [],
        "display_file_size": true,
        "backup_location": "/home/julian/"
}
commented

Fixed in 1.0.19