ext/UiaDll/UiaDll/PatternInformationStructures.h in uia-0.1.2.2 vs ext/UiaDll/UiaDll/PatternInformationStructures.h in uia-0.1.2.3
- old
+ new
@@ -71,10 +71,13 @@
}
private:
void init(bool isSelected, Element^ selectionContainer) {
IsSelected = isSelected;
- Container = new ElementInformation(selectionContainer);
+ Container = NULL;
+ if( nullptr != selectionContainer ) {
+ Container = new ElementInformation(selectionContainer);
+ }
}
} SelectionItemInformation, *SelectionItemInformationPtr;
\ No newline at end of file