<commit_before>package se.su.it.ldap.orm.connection

import org.apache.directory.api.ldap.model.message.ResultResponse

class Status {

  int ldapResultCode
  String message

  public static newInstance(ResultResponse response) {
    int value = response.ldapResult.resultCode.value
    String message = response.ldapResult.resultCode.message

    new Status(ldapResultCode: value, message: message)
  }
}
<commit_msg>Avoid NPE<commit_after>package se.su.it.ldap.orm.connection

import org.apache.directory.api.ldap.model.message.ResultResponse

class Status {

  int ldapResultCode
  String message

  public static newInstance(ResultResponse response) {
    int value = response?.ldapResult?.resultCode?.value
    String message = response?.ldapResult?.resultCode?.message

    new Status(ldapResultCode: value, message: message)
  }
}

{'fraction_non_alphanumeric': 0.0883054892601432, 'fraction_numerical': 0.0, 'mean_word_length': 4.593333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2401377', 'n_tokens_mistral': 252, 'n_tokens_neox': 245, 'n_words': 51}