We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10a0db3 commit eb757d9Copy full SHA for eb757d9
1 file changed
src/main/java/com/commercetools/sync/commons/utils/SyncUtils.java
@@ -217,7 +217,10 @@ public static ProductDraft replaceProductDraftCategoryReferenceIdsWithKeys(@Nonn
217
if (categoryOrderHintValue == null) {
218
// to handle case of getting category order hints from another CTP
219
// TODO NEEDS TO BE REFACTORED INTO OWN METHOD.
220
- categoryOrderHintsMapWithKeys.put(categoryKey, categoryOrderHints.get(categoryId));
+ final String categoryOrderHintValueById = categoryOrderHints.get(categoryId);
221
+ if (categoryOrderHintValueById != null) {
222
+ categoryOrderHintsMapWithKeys.put(categoryKey, categoryOrderHintValueById);
223
+ }
224
} else {
225
categoryOrderHintsMapWithKeys.put(categoryKey, categoryOrderHintValue);
226
}
0 commit comments