cancel
Showing results for 
Search instead for 
Did you mean: 

Validate PCD URI

Former Member
0 Kudos

Hi,

I need to get the property of a component. I am doing this by :

IPortalComponentContext ctx = request.getComponentContext(pcdURI);

But if the "pcdURI" is incorrect, the method fails and logs an error. Is there a way I can validate this URI before I call this method?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Seems like there is no way.

detlev_beutner
Active Contributor
0 Kudos

Hi Nirav,

just surround your fragment with try/catch, that would be at least a workaround.

Hope it helps

Detlev