Article - CS352263
"Element cannot be mapped to a null key" is sometimes produced when selecting an object in BOM Transformer while "Made From" tab is active in WIndchill MPMLink 12.0.2
Modified: 30-Sep-2021
Applies To
- Windchill MPMLink 12.0.2.0
Description
- "Element cannot be mapped to a null key" is sometimes produced when selecting an object in BOM Transformer while Made From tab is active
- Error is NOT given:
- When accessing Made From Link tab of the impacted objects, in PDMLink detail pages (outside from BOM Transformer context)
- When selecting other objects in BOM Transformer having also Made From Link definitions
- When error is thrown in the User Interface, it leads in following exceptions in Method Server Log file:
<Date> ERROR [DataSource Task Executor-246] com.ptc.cat.ops.server.internal.NavigateOperation <username>- java.lang.NullPointerException: element cannot be mapped to a null key wt.util.WTException: java.lang.NullPointerException: element cannot be mapped to a null key
Nested exception is: java.lang.NullPointerException: element cannot be mapped to a null key
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at java.base/java.util.stream.Collectors.lambda$groupingBy$53(Collectors.java:1127)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1603)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
|...]
This is a printer-friendly version of Article 352263 and may be out of date. For the latest version click CS352263