IDE-1002

Modified the duplicate conn == null script.