Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8497

Re: extract data from hash map for target structure mapping

$
0
0

Hi Ryan

 

I was building the function hashmap and it gave me an error for the last function step below

The function is not able to get the global container parameter matmap it seems

 

"

  1. HashMap<String, ArrayList<String>> matMap = (HashMap<String, ArrayList<String>>) container.getGlobalContainer().getParameter("matmap"); 
  2. for(int i = 0; i < var1.length; i++) 
  3. ArrayList<String> al = matMap.get(var1[i]); 
  4. matMap.remove(var1[i]); 
  5. for(int j = 0; j < al.size(); j++) 
  6. result.addValue(al.get(j)); 

 

 

 

        Exception:[java.lang.NullPointerException: while trying to invoke the method java.util.HashMap.get(java.lang.Object) of a null object loaded from a local variable at slot 4] in class com.sap.xi.tf._MM_hashmap_ method ExtractTupleFromMAT[[Ljava.lang.String;@373ed4ce, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@7e053cb7, com.sap.aii.mappingtool.tf7.rt.Context@9d55304]

See error logs for details    

 

thx

mike


Viewing all articles
Browse latest Browse all 8497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>