java.lang.NullPointerException: person

Atlassian JIRA | Adam Ahmed [Atlassian] | 7 months ago
  1. 0

    h3. Summary If a new file is created and added in the same commit where a merge conflict is being resolved, that new file will fail to open in the browser. Attempting to open the file returns a 500 error to the user, and generates a NullPointerException in the logs. h3. Steps to Reproduce # Attempt to merge a branch on the command line that will generate a merge conflict. # Create a new file. # {{git add}} the file(s) containing conflicts to resolve the conflict. # {{git add}} the new file. # Commit the changes. # Push the changes. # Navigate to the repository in the browser, and open the newly created file. h3. Expected Results The contents of the file are displayed. h3. Actual Results The user receives a 500 error in the browser. The below exception is thrown in the atlassian-bitbucket.log file: {noformat} 2016-05-31 15:32:19,930 WARN [http-nio-7990-exec-7] smaruvada @3H8VA8x932x688x0 10mi4n 192.168.10.1 "GET /projects/META/repos/puppets/browse/crash2 HTTP/1.1" c.a.s.i.w.s.f.AvatarUrlFunction Error getting avatar URL for null java.lang.NullPointerException: person at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226) ~[guava-18.0.jar:na] at com.atlassian.stash.internal.avatar.ConfigurableAvatarService.getUrlForPerson(ConfigurableAvatarService.java:199) ~[bitbucket-service-impl-4.6.1.jar:na] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) ~[atlassian-plugins-core-4.1.8.jar:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.getUrl(AvatarUrlFunction.java:80) [classes/:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:67) [classes/:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:23) [classes/:na] at com.atlassian.soy.impl.modules.SoyJavaFunctionAdapter.computeForJava(SoyJavaFunctionAdapter.java:34) [soy-template-plugin-4.3.0.jar:na] {noformat} h3. Notes This case was tested by multiple customers in version 4.3.2, and the issue did not exist. h3.Workaround # Commit new files in a separate commit from the merge commit. One customer has merge commits already imported from a forked repository, however, and cannot use this workaround. # Create a new commit for all the files that are inaccessible. The files will be accessible after pushing this commit.

    Atlassian JIRA | 6 months ago | Shashank Maruvada [Atlassian]
    java.lang.NullPointerException: person
  2. 0

    Suppose you have two branches of a repository. On one, there is a path a/b/c.txt, and on the other, this file doesn't exist. In a commit that merges these branches together, the file is moved to d/e/f.txt. Thus when viewing the merge diff, the file is Moved on one branch, and Created on the other. When attempting to view this file at {{/projects/PROJ/repos/REPO/browse/d/e/f.txt}}, a 500 error will be thrown while attempting to populate the commit "badge" in the upper right of the UI because no commit ever actually modified this file. The following is logged in {{atlassian-bitbucket.log}}: {code}2016-05-31 15:32:19,930 WARN [http-nio-7990-exec-7] smaruvada @3H8VA8x932x688x0 10mi4n 192.168.10.1 "GET /projects/META/repos/puppets/browse/crash2 HTTP/1.1" c.a.s.i.w.s.f.AvatarUrlFunction Error getting avatar URL for null java.lang.NullPointerException: person at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226) ~[guava-18.0.jar:na] at com.atlassian.stash.internal.avatar.ConfigurableAvatarService.getUrlForPerson(ConfigurableAvatarService.java:199) ~[bitbucket-service-impl-4.6.1.jar:na] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) ~[atlassian-plugins-core-4.1.8.jar:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.getUrl(AvatarUrlFunction.java:80) [classes/:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:67) [classes/:na] at com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:23) [classes/:na] at com.atlassian.soy.impl.modules.SoyJavaFunctionAdapter.computeForJava(SoyJavaFunctionAdapter.java:34) [soy-template-plugin-4.3.0.jar:na]{code}

    Atlassian JIRA | 7 months ago | Adam Ahmed [Atlassian]
    java.lang.NullPointerException: person
  3. 0

    NPE when getting element from empty literal array

    GitHub | 2 years ago | martint
    java.lang.NullPointerException: methodHandle is null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    stub-runner from Gradle fails to start

    GitHub | 2 years ago | nurkiewicz
    java.lang.NullPointerException: name cannot be null

  1. batwalrus76 3 times, last 1 week ago
  2. musketyr 2 times, last 3 months ago
  3. Nikolay Rybak 6 times, last 3 months ago
  4. Stefan Braune 1 times, last 5 months ago
  5. adawolfs 39 times, last 4 months ago
10 more registered users
46 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    person

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)[guava-18.0.jar:na]
    1 frame
  3. com.atlassian.stash
    ConfigurableAvatarService.getUrlForPerson
    1. com.atlassian.stash.internal.avatar.ConfigurableAvatarService.getUrlForPerson(ConfigurableAvatarService.java:199)[bitbucket-service-impl-4.6.1.jar:na]
    1 frame
  4. com.atlassian.plugin
    ContextClassLoaderSettingInvocationHandler.invoke
    1. com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)[atlassian-plugins-core-4.1.8.jar:na]
    1 frame
  5. com.atlassian.stash
    AvatarUrlFunction.apply
    1. com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.getUrl(AvatarUrlFunction.java:80)[classes/:na]
    2. com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:67)[classes/:na]
    3. com.atlassian.stash.internal.web.soy.functions.AvatarUrlFunction.apply(AvatarUrlFunction.java:23)[classes/:na]
    3 frames