Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

$this->render('//account/index'); throws exception #29

Open
alexweb-zz opened this issue Jul 16, 2014 · 5 comments
Open

$this->render('//account/index'); throws exception #29

alexweb-zz opened this issue Jul 16, 2014 · 5 comments

Comments

@alexweb-zz
Copy link

An error appears when enter double slash in controller render method, like:

return $this->render('//account/index',[
            'model' => $model,
        ]);
@cmazx
Copy link
Owner

cmazx commented Jul 16, 2014

Thanks for report =) Please update to last version, and report is the problem fixed?

@alexweb-zz
Copy link
Author

Updated to 0.9.16.4. The problem exists in this version too.

@cmazx
Copy link
Owner

cmazx commented Jul 17, 2014

Tell me text of excepion, your OS version,
java version (run java -version or on site https://www.java.com/verify/),
and version of phpstorm.

error appears when code look like this?
return $this->render('//',[ 'model' => $model, ]);

@alexweb-zz
Copy link
Author

Sorry for the late reply.

Exception appears when click on view name and there are 2 slashes before it, like:

return $this->render('//view');

Exception:

null
java.lang.NullPointerException
    at com.yiistorm.references.ViewsReference.resolve(ViewsReference.java:81)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:576)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:503)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$2500(CtrlMouseHandler.java:104)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.a(CtrlMouseHandler.java:790)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2400(CtrlMouseHandler.java:735)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.computeInReadAction(CtrlMouseHandler.java:778)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$3$1.run(ProgressIndicatorUtils.java:109)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:942)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$3.run(ProgressIndicatorUtils.java:106)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:193)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:211)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:164)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:100)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$000(ProgressIndicatorUtils.java:34)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$2$2.run(ProgressIndicatorUtils.java:79)
    at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:447)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

PhpStorm 8.0.1

Plugin version 0.9.16.3

@cmazx
Copy link
Owner

cmazx commented Oct 28, 2014

thx for feedback

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants