diff --git a/OpenBudgeteer.Core/ViewModels/EntityViewModels/BucketViewModel.cs b/OpenBudgeteer.Core/ViewModels/EntityViewModels/BucketViewModel.cs index b3abcd4..d2e4ca8 100644 --- a/OpenBudgeteer.Core/ViewModels/EntityViewModels/BucketViewModel.cs +++ b/OpenBudgeteer.Core/ViewModels/EntityViewModels/BucketViewModel.cs @@ -449,11 +449,14 @@ private void CalculateValues() #endregion*/ #region Balance, In & Out - - var figures = ServiceManager.BucketService.GetFigures(BucketId, _currentYearMonth); - Balance = figures.Balance ?? 0; - In = figures.Input; - Activity = figures.Output; + + if (BucketId != default) + { + var figures = ServiceManager.BucketService.GetFigures(BucketId, _currentYearMonth); + Balance = figures.Balance ?? 0; + In = figures.Input; + Activity = figures.Output; + } #endregion