IModelBCSettingsGroup

StatusIDPriorityType
Closed41462CriticalQuestion
ProfileReply
SquimClient

Hello. Help me please. After switching from 14.1.13 to 15.1.9, an error occurs:

The error occurred:

Type: NullReferenceException
Message: Ссылка на объект не указывает на экземпляр объекта.
Data: 0 entries
Stack trace:

в Xafari.BC.Settings.IModelBCSettingsObjectItemLogic2.GetObjectFromString(IObjectSpace objectSpace, String value) в Xafari.BC.Settings.IModelBCSettingsObjectItemLogic2.get_Value()
в ModelKeyXafariSecuritySystemRole.GetStaticValueCalculator(ModelNode node)
в DevExpress.ExpressApp.Model.Core.ModelNodeInfo.GetDefaultValue(ModelNode node, String propertyName)
в DevExpress.ExpressApp.Model.Core.ModelNode.GetValue[ValueType](IModelValue1 modelValue, String name, Int32 aspectIndex) в DevExpress.ExpressApp.Model.Core.ModelNode.GetValue[T](String name, Boolean inThisLayer, Int32 aspectIndex) в DevExpress.ExpressApp.Model.Core.ModelNode.GetValue[T](String name) в Xafari.BC.Settings.IModelBCSettingsObjectItemLogic2.GetValue()
в DevExpress.XtraVerticalGrid.Data.BoundDataModeHelper.GetCellValueCore(RowProperties props, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.VGridControlBase.GetCellValue(RowProperties props, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.VGridControlBase.UpdateEditViewInfoData(BaseEditViewInfo editViewInfo, RowProperties properties, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.ViewInfo.RowValueInfo.CalcViewInfo(Boolean recalc, Point point)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseRowViewInfo.CalcRowValueInfo(RowProperties p, Rectangle r, BaseViewInfo viewInfo, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.GetRecordCellHeight(BaseRowViewInfo rowInfo, RowProperties p, GraphicsCache cache, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.GetMinValueAutoHeightCore(BaseRow row, Int32 recordIndex)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.CalcRowAutoHeight(BaseRow row)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.GetVisibleRowHeight(BaseRow row)
в DevExpress.XtraVerticalGrid.Internal.VGridScrollStrategy.GetTotalVisibleRowHeight(BaseRow row)
в DevExpress.XtraVerticalGrid.Internal.VGridScrollStrategy.GetVisibleCountInternal(GridRowReadOnlyCollection rows, Int32 beginIndex, Int32 areaHeight, Int32 step, Func`2 indexStopCriterion, Boolean continueBand)
в DevExpress.XtraVerticalGrid.Internal.VGridScrollStrategy.CanVerticalScroll(Int32 scrollHeight)
в DevExpress.XtraVerticalGrid.Internal.VGridScroller.get_CanVerticalScroll()
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.GetClientRect(Rectangle window)
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.GetActualClient()
в DevExpress.XtraVerticalGrid.ViewInfo.ViewRects.get_Client()
в DevExpress.XtraVerticalGrid.ViewInfo.SingleRecordViewInfo.CalcBandWidth()
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.CalcBandRects()
в DevExpress.XtraVerticalGrid.ViewInfo.ViewRects.Calc()
в DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.Calc()
в DevExpress.XtraVerticalGrid.VGridControlBase.UpdateLayout()
в DevExpress.XtraVerticalGrid.VGridControlBase.LayoutChangedCore()
в DevExpress.XtraVerticalGrid.VGridControl.LayoutChangedCore()
в DevExpress.XtraVerticalGrid.VGridControlBase.UpdateCore()
в Xafari.BC.Settings.Win.WinSettingsPropertyEditor._groupTreeList_FocusedNodeChanged(Object sender, FocusedNodeChangedEventArgs e)
в DevExpress.XtraTreeList.TreeList.RaiseFocusedNodeChanged(TreeListNode oldNode, TreeListNode newNode)
в DevExpress.XtraTreeList.TreeList.InternalSetFocusedRowIndex(Int32 newFocusedRowIndex)
в DevExpress.XtraTreeList.Handler.TreeListHandler.TreeListControlState.ChangeSelection(RowInfo pressRowInfo, Boolean isLeftButton)
в DevExpress.XtraTreeList.Handler.TreeListHandler.NodePressedState.Init()
в DevExpress.XtraTreeList.Handler.TreeListHandler.SetControlState(TreeListState state)
в DevExpress.XtraTreeList.Handler.TreeListHandler.NormalState.OnPressNode()
в DevExpress.XtraTreeList.Handler.TreeListHandler.NormalState.MouseDown(MouseEventArgs e, TreeListHitTest ht)
в DevExpress.XtraTreeList.Handler.TreeListHandler.OnMouseDown(MouseEventArgs e)
в DevExpress.XtraTreeList.TreeList.OnMouseDown(MouseEventArgs e)
в System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
в DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
в System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
в System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
в DevExpress.ExpressApp.Win.WinApplication.Start()
InnerException is null

It happens in

using DevExpress.ExpressApp.DC;
using DevExpress.ExpressApp.Model;
using DevExpress.ExpressApp.Security.Strategy;
using System.ComponentModel;
using Xafari.BC.Settings;
using Xafari.Security.Xpo;

namespace BSK.EAM.Model

{
[ModelDefault("Caption", "Дополнительно")] public interface KausSettings : IModelBCSettingsGroup
{
[ModelDefault("Caption", "Роль Администратора ТОиР")] IModelKeyXafariSecuritySystemRole РольАдминистратораТОиР { get; }

[Browsable(false)] IModelKeySecuritySystemRole SecuritySystemRole { get; }
}

public interface IModelKeyXafariSecuritySystemRole : IModelBCSettingsObjectItem
{
}
[DomainLogic(typeof(IModelKeyXafariSecuritySystemRole))] public class IModelKeyXafariSecuritySystemRoleLogic : IModelBCSettingsXPObjectItemLogic
{
public IModelKeyXafariSecuritySystemRoleLogic(IModelKeyXafariSecuritySystemRole instance) : base(instance) { }
}

public interface IModelKeySecuritySystemRole : IModelBCSettingsObjectItem
{
}
[DomainLogic(typeof(IModelKeySecuritySystemRole))] public class IModelKeySecuritySystemRoleLogic : IModelBCSettingsXPObjectItemLogic
{
public IModelKeySecuritySystemRoleLogic(IModelKeySecuritySystemRole instance) : base(instance) { }
}
}

× This ticket is closed.

Write US