我正在尝试使用 Manatee.Trello 检索现有的板背景颜色或图像。这是我迄今为止尝试过的:
Board myboard = new Search(SearchFor.TextInName("MyAwesomeBoard"), 1, SearchModelType.Boards).Boards.FirstOrDefault();
var boardColor = myboard.Preferences.Background.Color;
var boardImg = myboard.Preferences.Background.Image;
根据访问者签名,这应该返回 astring
或 a WebColor
。它编译得很好,但在运行时我收到以下错误:
NullReferenceException: Object reference not set to an instance of an object
即使该板当前具有图像或彩色背景。是否有其他方法可以访问此信息,或者 Manatee.Trello 中是否存在错误?