Commit cfabe484 authored by claes's avatar claes

Try/catch added in ldh_ArefANameToAref

parent 2ea18ecb
/*
* Proview $Id: wb_ldh.cpp,v 1.55 2006-05-21 22:30:50 lw Exp $
* Proview $Id: wb_ldh.cpp,v 1.56 2006-10-10 07:40:10 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1267,14 +1267,19 @@ ldh_ArefANameToAref(ldh_tSession session, pwr_sAttrRef *arp, char *aname, pwr_sA
{
wb_session *sp = (wb_session *)session;
wb_attribute a = sp->attribute(arp);
if (!a) return a.sts();
wb_attribute oa( a, 0, aname);
try {
wb_attribute a = sp->attribute(arp);
if (!a) return a.sts();
oa.aref(oarp);
wb_attribute oa( a, 0, aname);
return oa.sts();
oa.aref(oarp);
return oa.sts();
}
catch ( wb_error& e) {
return e.sts();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment