File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/com/magento/idea/magento2plugin/indexes Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1414import com .magento .idea .magento2plugin .stubs .indexes .mftf .*;
1515import com .magento .idea .magento2plugin .stubs .indexes .xml .PhpClassNameIndex ;
1616
17- /**
18- * Created by dkvashnin on 1/9/16.
19- */
2017public class IndexManager {
2118 public static void manualReindex () {
2219 ID <?, ?>[] indexIds = new ID <?, ?>[] {
@@ -49,8 +46,12 @@ public static void manualReindex() {
4946 };
5047
5148 for (ID <?, ?> id : indexIds ) {
52- FileBasedIndexImpl .getInstance ().requestRebuild (id );
53- FileBasedIndexImpl .getInstance ().scheduleRebuild (id , new Throwable ());
49+ try {
50+ FileBasedIndexImpl .getInstance ().requestRebuild (id );
51+ FileBasedIndexImpl .getInstance ().scheduleRebuild (id , new Throwable ());
52+ } catch (NullPointerException exception ) {
53+ //that's fine, indexer is not present in map java.util.Map.get
54+ }
5455 }
5556 }
5657}
You can’t perform that action at this time.
0 commit comments