When I try to use time tracking plugin, it crashes

return e.prototype.getRepoUuid = function() {
        var e = location.search
          , t = e.match(/^\?uuid=([^&]*)&path=([^&]*)/)
          , r = t[1];
        return AP.require("_util", function(e) {
            r = e.decodeQueryComponent(r)
        }),
        r
    }

 

In this code, location.search=

"?path=bronsoft%2Fexpression&xdm_c=channel-2fcb28da-c1ee-471d-b4b5-b93f2227396e&xdm_e=https%3A%2F%2Fbitbucket.org&uuid=%7B78bda191-f358-4c87-9a46-21156ecd729f%7D&crev=3ff83bd3deed&jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjb25uZWN0aW9uOjEzNTMyOTQiLCJpYXQiOjE1MDAyOTUzNTQsInFzaCI6IjZhYzZiZWIwMzViYzQwYTc0ZGZjZjUzMjIwZWU4Njg3NTU2M2E2ZWVlNjI0NjY2ZDNiZWExNGU3ZmUyZmY4NDgiLCJhdWQiOiJjb25uZWN0aW9uOjEzNTMyOTQiLCJleHAiOjE1MDAyOTg5NTR9.Em9IMtwuFNiYSg9S1PqsS5430ViK-5u1Arx1fuhEYs4"

thus t = null and r fails with exception:

app.min.js:formatted:20 Uncaught TypeError: Cannot read property '1' of null

 

Can you fix it? Is there anything else I can use to log effort on issues created in bitbucket?

0 answers

Suggest an answer

Log in or Register to answer