diff --git a/uc_userpoints_product/uc_userpoints_product.module b/uc_userpoints_product/uc_userpoints_product.module
index ea198ad..f468110 100644
--- a/uc_userpoints_product/uc_userpoints_product.module
+++ b/uc_userpoints_product/uc_userpoints_product.module
@@ -243,6 +243,7 @@ function uc_userpoints_product_uc_order($op, $order, $status) {
 function uc_userpoints_product_form_alter(&$form, &$form_state, $form_id) {
   // We may need to alter the checkout form to remove invalid payment methods.
   if ($form_id == 'uc_cart_checkout_form' && isset($form['panes']['payment'])) {
+    $order = new stdClass();
     $order->products = uc_cart_get_contents();
     // Make no changes if no products containing Userpoints are found.
     if (uc_userpoints_find_points_products($order) == array()) {
