I am uploading the "trackingnumber" and "carrier information" to an order using the API interface. I use the "setshippingcarrierused()" and "setshipmenttrackingnumber()" methods in the "shipmenttrackingdetailstype" class in "GetordersCall", but the problem is that when I actually use these two methods, Null pointer exception is always returned, resulting in failure to upload relevant information to the order.Is there a problem with my program or API interface?
1、ShippingDetailsType shippingDetails=new ShippingDetailsType();
2、ShipmentTrackingDetailsType shipmentTrackingDetails2 =new ShipmentTrackingDetailsType;
The above is my java code. Every time I run to step 3, an error will be reported. Is the error displayed? Null pointer exception！