Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 232: SaveBloodGlucoseBehaviorGoal( member, startingDate, endingDate, currentDate ); Line 233: Line 234: workflow.ExecuteSyncRule( BCSRules.Behavior.Goals.OnGoalSettingCompleted, context ); Line 235: Line 236: IAuthorizationModule authorizationModule = Singleton.Instance.GetAuthorizationModule(); Source File: C:\Users\teehill\Documents\Visual Studio 2010\WebSites\kao\trunk\BCS.Web.App\KAO\Controls\Behavior\GoalSettingView.ascx.cs Line: 234 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] BCS.Modules.Nutrition.NutritionHelper.CalculateFoodAttributes(ServingSize servingSize, MeasureUnitAttributes measureUnitAttributes, FoodItemSearchResult foodItemSearchResult) +433 BCS.Modules.Nutrition.NutritionHelper.CalculateFoodAttributes(MemberFoodItemPlanBase memberFoodItemPlanBase) +638 BCS.Modules.Nutrition.Plan.MemberFoodItemPlanBase.Calculate() +59 BCS.Modules.Nutrition.NutritionModule.SaveWeeklyPlanToMemberFoodLogPlan(Member member, JulianDate startDate, WeeklyMealPlan weekPlan, IList`1 snacksToAdd) +2086 KAO.BusinessRules.Nutrition.MemberFoodLogPlanCreateWeekly.Execute(WorkflowContext context) in C:\Users\teehill\Documents\Visual Studio 2010\WebSites\kao\trunk\KAO.BusinessRules\Nutrition\MemberFoodLogPlanCreateWeekly.cs:107 BCS.Modules.Workflow.WorkflowModule.ExecuteSyncRule(String ruleName, WorkflowContext context) +397 BCS.Web.App.Controls.Behavior.GoalSettingView.cmdCalculate_Click(Object sender, EventArgs e) in C:\Users\teehill\Documents\Visual Studio 2010\WebSites\kao\trunk\BCS.Web.App\KAO\Controls\Behavior\GoalSettingView.ascx.cs:234 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +100 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +99 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980 Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955