개정판 8eee15b4
Link OPC: Prevent exceptions
Change-Id: Ia1f57bd64aaf6b393a4eb104e82ad76e33749a70
DTI_PID/SPPIDConverter/ConverterDocking.cs | ||
---|---|---|
198 | 198 |
|
199 | 199 |
// Input Drawing Attribute |
200 | 200 |
LMDrawing drawing = ((dynamic)drawings).Nth(1); |
201 |
|
|
201 |
if (drawing == null) |
|
202 |
{ |
|
203 |
MessageBox.Show("Please open the drawing", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
204 |
return; |
|
205 |
} |
|
202 | 206 |
LMAFilter filter2 = new LMAFilter(); |
203 | 207 |
filter2.ItemType = "REPRESENTATION"; |
204 | 208 |
|
... | ... | |
298 | 302 |
if (tag == other.Item2 && fileName == other.Item1.get_FileName()) |
299 | 303 |
{ |
300 | 304 |
LMOPC otherOPC = dataSource.GetOPC(other.Item1.ModelItemID); |
301 |
findOPCs.Add(otherOPC); |
|
305 |
if (otherOPC != null) |
|
306 |
findOPCs.Add(otherOPC); |
|
302 | 307 |
} |
303 | 308 |
} |
304 | 309 |
|
내보내기 Unified diff