I have been working a module to improve commerce packing algorithm. The module was ready and I was about to release a dev version of the module. So I decide to update this module and I got a bunch of errors. Some of the error are from the module that I have been working on. However, I believe if I figure out how to solve the error below it would fix the rest of the modules my module.
Here is the error that I have been getting:
Notice: Trying to get property of non-object in commerce_physical_product_line_item_dimensions() (line 154 of /var/www/thursby2/sites/all/modules/commerce_physical/commerce_physical.module).
Any thoughts about this particular error ? Anyone have seen this before?
Here is the version I was using on this module:

| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commerce_physical-non_object-property_missing-2480355-2.patch | 613 bytes | agileadam |
| #1 | Screenshot from 2015-04-29 10^%04^%47.png | 13.48 KB | darol100 |
Comments
Comment #1
darol100 commentedComment #2
agileadamI recently updated Commerce Physical Product and Physical Fields and ended up getting this error during checkout (while attempting to get UPS shipping rates).
I've attached a one-liner patch that corrects the issue.
Comment #3
darol100 commentedI have review the patch of comment #2 and it works like charm. It will nice if we can push this patch ASAP, because I'm working on contribute module that depends on this module and I will not be able to make a release if it have these errors. I have change to RTCB.
Comment #4
rszrama commentedThanks for the fix.