| 248 | | if ( NULL != action && action->isOk () && |
| 249 | | actionGoTo == action->getKind () ) |
| 250 | | { |
| 251 | | LinkDest *linkDestination = ((LinkGoTo *)action)->getDest (); |
| 252 | | if ( linkDestination->isOk () ) |
| | 248 | if ( NULL != action && actionGoTo == action->getKind () && |
| | 249 | action->isOk () ) |
| | 250 | { |
| | 251 | LinkDest *linkDestination = NULL; |
| | 252 | GooString *namedDest = ((LinkGoTo *)action)->getNamedDest (); |
| | 253 | // getNamedDest() or getDest() will return NULL, just need to |
| | 254 | // find which one. |
| | 255 | if ( NULL != namedDest ) |
| | 256 | { |
| | 257 | linkDestination = m_Document->findDest (namedDest); |
| | 258 | } |
| | 259 | else |
| | 260 | { |
| | 261 | linkDestination = ((LinkGoTo *)action)->getDest (); |
| | 262 | } |
| | 263 | if ( NULL != linkDestination && linkDestination->isOk () ) |