aboutsummaryrefslogtreecommitdiff
path: root/src/common/DataStores/DB2FileLoader.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-01-07 21:22:51 +0100
committerShauren <shauren.trinity@gmail.com>2022-01-07 21:22:51 +0100
commit26bdbde4679989a452cf7d2c5e29ceb6e0036ce3 (patch)
treee143033d9d4c0e1430126b6705293c2624937b07 /src/common/DataStores/DB2FileLoader.cpp
parent7a7c0c25cd84a99fc9cd70463859b2211865310f (diff)
Core/DataStores: Fixed a crash in db2 loader happening when trying to load additional localized strings from a db2 file newer than db2 for default worldserver locale
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.cpp')
-rw-r--r--src/common/DataStores/DB2FileLoader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/DataStores/DB2FileLoader.cpp b/src/common/DataStores/DB2FileLoader.cpp
index abeeec006be..fe0a68eee48 100644
--- a/src/common/DataStores/DB2FileLoader.cpp
+++ b/src/common/DataStores/DB2FileLoader.cpp
@@ -554,6 +554,8 @@ char* DB2FileLoaderRegularImpl::AutoProduceStrings(char** indexTable, uint32 ind
continue;
char* recordData = indexTable[indexVal];
+ if (!recordData)
+ continue;
uint32 offset = 0;
uint32 fieldIndex = 0;