The prime minister was asked about protests over plans to use a former military base to house asylum seekers.